fix: healthchecks and restart_policy for web container
This commit is contained in:
@ -22,7 +22,7 @@ services:
|
|||||||
target: /var/www/.well-known/matrix/client
|
target: /var/www/.well-known/matrix/client
|
||||||
deploy:
|
deploy:
|
||||||
restart_policy:
|
restart_policy:
|
||||||
condition: on-failure
|
condition: any
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
|
||||||
@ -33,8 +33,8 @@ services:
|
|||||||
test: curl -f http://${STACK_NAME}_app:8008/health || exit 1
|
test: curl -f http://${STACK_NAME}_app:8008/health || exit 1
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 15s
|
timeout: 15s
|
||||||
retries: 30
|
retries: 90
|
||||||
start_period: 1m
|
start_period: 2m
|
||||||
|
|
||||||
app:
|
app:
|
||||||
image: "matrixdotorg/synapse:v1.149.1"
|
image: "matrixdotorg/synapse:v1.149.1"
|
||||||
|
|||||||
Reference in New Issue
Block a user