Update service restart policy to "no" and add health checks for Mautrix services

This commit is contained in:
Roger Gonzalez 2024-12-15 12:54:39 -03:00
parent e0cb6707b7
commit 0280e965c1
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6

View File

@ -39,7 +39,7 @@ services:
mautrix-whatsapp:
hostname: whatsapp
image: dock.mau.dev/mautrix/whatsapp
restart: unless-stopped
restart: no
volumes:
- ./config/mautrix-whatsapp:/data
- /etc/localtime:/etc/localtime:ro
@ -47,28 +47,46 @@ services:
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "test -f /data/config.yaml -a -f /data/registration.yaml"]
interval: 30s
timeout: 10s
retries: 1
start_period: 5s
mautrix-telegram:
hostname: telegram
image: dock.mau.dev/mautrix/telegram
restart: unless-stopped
restart: no
volumes:
- ./config/mautrix-telegram:/data
- /etc/localtime:/etc/localtime:ro
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "test -f /data/config.yaml -a -f /data/registration.yaml"]
interval: 30s
timeout: 10s
retries: 1
start_period: 5s
mautrix-discord:
hostname: discord
image: dock.mau.dev/mautrix/discord
restart: unless-stopped
restart: no
volumes:
- ./config/mautrix-discord:/data
- /etc/localtime:/etc/localtime:ro
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "test -f /data/config.yaml -a -f /data/registration.yaml"]
interval: 30s
timeout: 10s
retries: 1
start_period: 5s
cleanmedia:
hostname: cleanmedia