Update service restart policy to "no" and add health checks for Mautrix services
This commit is contained in:
parent
e0cb6707b7
commit
0280e965c1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user