From e666046c4f5826dfbbe23c0255edc29de44a9eee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=AD=C3=B0ir=20Valberg=20Gu=C3=B0mundsson?= Date: Tue, 22 Nov 2022 21:39:32 +0100 Subject: [PATCH] Make sure to always restart membersystem if it goes down. --- roles/docker/tasks/services/membersystem.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/docker/tasks/services/membersystem.yml b/roles/docker/tasks/services/membersystem.yml index b214abb..d5c02ad 100644 --- a/roles/docker/tasks/services/membersystem.yml +++ b/roles/docker/tasks/services/membersystem.yml @@ -9,7 +9,7 @@ services: backend: image: docker.data.coop/member.data.coop:latest - restart: unless-stopped + restart: always user: $UID:$GID tty: true depends_on: @@ -37,6 +37,7 @@ com.centurylinklabs.watchtower.enable: "true" postgres: + restart: always image: postgres:13-alpine volumes: - "{{ volume_root_folder }}/membersystem/postgres/data:/var/lib/postgresql/data"