Merge pull request "Add healthcheck and backup labels" (#5)
Reviewed on: https://git.coopcloud.tech/coop-cloud/mumble/pulls/5
This commit is contained in:
11
compose.yml
11
compose.yml
@ -51,6 +51,12 @@ services:
|
||||
MUMBLE_CONFIG_ROLLINGSTATSWINDOW: ${ROLLING_STATS_WINDOW:-300}
|
||||
MUMBLE_CONFIG_LISTENERSPERCHANNEL: ${LISTENERS_PER_CHANNEL:--1}
|
||||
MUMBLE_CONFIG_LISTENERSPERUSER: ${LISTENERS_PER_USER:--1}
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "bash -c 'echo > /dev/tcp/localhost/64738'"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
start_period: 30s
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
@ -64,6 +70,11 @@ services:
|
||||
- "traefik.udp.routers.${STACK_NAME}.entrypoints=mumble-udp"
|
||||
- "traefik.udp.routers.${STACK_NAME}.service=${STACK_NAME}-udp-service"
|
||||
- "traefik.udp.services.${STACK_NAME}-udp-service.loadbalancer.server.port=64738"
|
||||
- "backupbot.backup=${ENABLE_BACKUPS:-true}"
|
||||
- 'backupbot.backup.pre-hook=sqlite3 /data/mumble-server.sqlite ".backup /data/backup.sqlite"'
|
||||
- "backupbot.backup.post-hook=rm -f /data/backup.sqlite"
|
||||
- "backupbot.backup.volumes.mumble_data.path=backup.sqlite"
|
||||
- "backupbot.restore.post-hook=mv /data/backup.sqlite /data/mumble-server.sqlite"
|
||||
- "coop-cloud.${STACK_NAME}.version=0.2.0+v1.6.870-0"
|
||||
|
||||
secrets:
|
||||
|
||||
Reference in New Issue
Block a user