From 1c399f373aa180ea6b5cb46eb04c172813cc0d79 Mon Sep 17 00:00:00 2001 From: Pieter Hollander Date: Wed, 27 Mar 2024 10:19:09 +0100 Subject: [PATCH] Add 'restart: always' to Compose examples. --- docker/compose.with-database-grafana.yml | 2 ++ docker/compose.with-database.yml | 2 ++ docker/compose.yml | 1 + 3 files changed, 5 insertions(+) diff --git a/docker/compose.with-database-grafana.yml b/docker/compose.with-database-grafana.yml index aec485e..0d473f0 100644 --- a/docker/compose.with-database-grafana.yml +++ b/docker/compose.with-database-grafana.yml @@ -2,6 +2,7 @@ version: '3.8' services: timescaledb: image: timescale/timescaledb:latest-pg16 + restart: always environment: POSTGRES_USER: ${PG_USER} POSTGRES_PASSWORD: ${PG_PASSWORD} @@ -22,6 +23,7 @@ services: opendtu-logger: image: git.hollander.online/energy/opendtu-logger:main + restart: always environment: DB_URL: ${DB_URL} REMOTE_URL: ${REMOTE_URL} diff --git a/docker/compose.with-database.yml b/docker/compose.with-database.yml index f4e1b53..b0a9004 100644 --- a/docker/compose.with-database.yml +++ b/docker/compose.with-database.yml @@ -1,6 +1,7 @@ version: '3.8' services: timescaledb: + restart: always image: timescale/timescaledb:latest-pg16 environment: POSTGRES_USER: ${PG_USER} @@ -21,6 +22,7 @@ services: retries: 20 opendtu-logger: + restart: always image: git.hollander.online/energy/opendtu-logger:main environment: DB_URL: ${DB_URL} diff --git a/docker/compose.yml b/docker/compose.yml index 5dedd15..d25a958 100644 --- a/docker/compose.yml +++ b/docker/compose.yml @@ -1,6 +1,7 @@ version: '3.8' services: opendtu-logger: + restart: always image: git.hollander.online/energy/opendtu-logger:main environment: DB_URL: ${DB_URL}