From 63b8a66ebbbc02bbf61425a3feaf28efa853e95d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Sat, 23 Nov 2024 01:09:57 +0100 Subject: [PATCH] Add restart policy to autostart the containers after boot --- compose.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compose.yaml b/compose.yaml index 8182ea6..6eea7c7 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,5 +1,9 @@ +x-op-restart-policy: &restart_policy + restart: unless-stopped + services: shimatta-kenkyusho-web: + <<: *restart_policy build: . volumes: - "${DJANGO_STATIC_VOL:-./run/static}:/var/static" @@ -30,6 +34,7 @@ services: start_period: 30s shimatta-kenkyusho-db: + <<: *restart_policy image: postgres:16.5-alpine environment: POSTGRES_PASSWORD: "${DJANGO_POSTGRESQL_PW:-p4ssw0rd}"