chore: restart main containers on failure instead of always

This commit is contained in:
Nicolas Meienberger 2023-05-30 23:00:40 +02:00
parent ce494f790c
commit bd592c8f5c

View file

@ -4,7 +4,7 @@ services:
reverse-proxy:
container_name: reverse-proxy
image: traefik:v2.8
restart: unless-stopped
restart: on-failure
ports:
- ${NGINX_PORT-80}:80
- ${NGINX_PORT_SSL-443}:443
@ -19,7 +19,7 @@ services:
tipi-db:
container_name: tipi-db
image: postgres:14
restart: unless-stopped
restart: on-failure
stop_grace_period: 1m
volumes:
- ${PWD}/data/postgres:/var/lib/postgresql/data
@ -38,7 +38,7 @@ services:
tipi-redis:
container_name: tipi-redis
image: redis:alpine
restart: unless-stopped
restart: on-failure
volumes:
- ./data/redis:/data
healthcheck:
@ -51,7 +51,7 @@ services:
dashboard:
image: meienberger/runtipi:${TIPI_VERSION}
restart: unless-stopped
restart: on-failure
container_name: dashboard
networks:
- tipi_main_network