healthcheck

This commit is contained in:
olli 2024-08-20 15:12:13 +02:00
parent ebfa2ac39b
commit 0ec9e33484

View File

@ -373,6 +373,11 @@
image: docker.io/matrixdotorg/synapse:latest image: docker.io/matrixdotorg/synapse:latest
restart: unless-stopped restart: unless-stopped
user: 3000:3000 user: 3000:3000
healthcheck:
timeout: 30s
retries: 3
start_period: 300s
interval: 15s
volumes: volumes:
- ./data:/data - ./data:/data
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
@ -558,6 +563,9 @@
- ${pipe}:/${pipebasename} - ${pipe}:/${pipebasename}
entrypoint: /bin/bash -c 'cd /data && tail -F \"/${pipebasename}\" | /app/matrix_commander/matrix-commander -m _ --html --room \"$room\" --log-level INFO INFO' entrypoint: /bin/bash -c 'cd /data && tail -F \"/${pipebasename}\" | /app/matrix_commander/matrix-commander -m _ --html --room \"$room\" --log-level INFO INFO'
restart: unless-stopped restart: unless-stopped
depends_on:
matrix.defiant.dedyn.io--synapse:
condition: service_healthy
" >> docker-compose.override.yml.new " >> docker-compose.override.yml.new
done done