chore: restart main containers on failure instead of always
This commit is contained in:
parent
ce494f790c
commit
bd592c8f5c
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue