Make sure to always restart membersystem if it goes down.

This commit is contained in:
Víðir Valberg Guðmundsson 2022-11-22 21:39:32 +01:00
parent 7d61023167
commit e666046c4f

View file

@ -9,7 +9,7 @@
services: services:
backend: backend:
image: docker.data.coop/member.data.coop:latest image: docker.data.coop/member.data.coop:latest
restart: unless-stopped restart: always
user: $UID:$GID user: $UID:$GID
tty: true tty: true
depends_on: depends_on:
@ -37,6 +37,7 @@
com.centurylinklabs.watchtower.enable: "true" com.centurylinklabs.watchtower.enable: "true"
postgres: postgres:
restart: always
image: postgres:13-alpine image: postgres:13-alpine
volumes: volumes:
- "{{ volume_root_folder }}/membersystem/postgres/data:/var/lib/postgresql/data" - "{{ volume_root_folder }}/membersystem/postgres/data:/var/lib/postgresql/data"