From 2fd0e3a89984aecaa5eb8939c9117804d8aa01b5 Mon Sep 17 00:00:00 2001 From: Erik Huelsmann Date: Wed, 30 Nov 2022 23:55:08 +0100 Subject: [PATCH] Make containers restart automatically and document how to disable that... --- docker-compose-reverseproxy.yml | 3 +++ docker-compose.yml | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/docker-compose-reverseproxy.yml b/docker-compose-reverseproxy.yml index 2b29fa1..5878b1a 100644 --- a/docker-compose-reverseproxy.yml +++ b/docker-compose-reverseproxy.yml @@ -25,6 +25,9 @@ services: - "./nginx.conf:/etc/nginx/nginx.conf" ports: - "8080:8080" + # Comment the line below to stop the container from restarting on boot + # unless it was manually stopped + restart: unless-stopped lsmb: volumes: - "lsmbdata:/srv/ledgersmb" diff --git a/docker-compose.yml b/docker-compose.yml index 985734f..aee9a20 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -25,6 +25,9 @@ services: - internal volumes: - "pgdata:/var/lib/postgresql/data" + # Comment the line below to stop the container from restarting on boot + # unless it was manually stopped + restart: unless-stopped lsmb: depends_on: - postgres @@ -67,6 +70,9 @@ services: # hosted in a separate container, this setting needs to be adjusted. # # PROXY_IP: 172.17.0.1/12 + # Comment the line below to stop the container from restarting on boot + # unless it was manually stopped + restart: unless-stopped # having the dbdata volume is required to persist our # data between PostgreSQL container updates; without