From 10e446eb2c5152dadb95e2d17b9bd15276cad27c Mon Sep 17 00:00:00 2001 From: navjotjsingh Date: Thu, 19 Aug 2021 14:35:24 +0530 Subject: [PATCH 1/2] Add Restart Ability to all the Containers --- docker-compose.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index b5aed8f..a4f9f2d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,6 +6,7 @@ services: plausible_db: image: postgres:12 + restart: always volumes: - db-data:/var/lib/postgresql/data environment: @@ -13,6 +14,7 @@ services: plausible_events_db: image: yandex/clickhouse-server:21.3.2.5 + restart: always volumes: - event-data:/var/lib/clickhouse - ./clickhouse/clickhouse-config.xml:/etc/clickhouse-server/config.d/logging.xml:ro @@ -24,6 +26,7 @@ services: plausible: image: plausible/analytics:latest + restart: always command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh db init-admin && /entrypoint.sh run" depends_on: - plausible_db From 0b6636553f1fc95b2947dafb0fba010f3846f5d0 Mon Sep 17 00:00:00 2001 From: navjotjsingh Date: Sun, 22 Aug 2021 17:20:33 +0530 Subject: [PATCH 2/2] Add restart to GEOIP container --- geoip/docker-compose.geoip.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/geoip/docker-compose.geoip.yml b/geoip/docker-compose.geoip.yml index b42bc52..17683c7 100644 --- a/geoip/docker-compose.geoip.yml +++ b/geoip/docker-compose.geoip.yml @@ -10,6 +10,7 @@ services: geoip: image: maxmindinc/geoipupdate + restart: always environment: - GEOIPUPDATE_EDITION_IDS=GeoLite2-Country - GEOIPUPDATE_FREQUENCY=168 # update every 7 days