40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
---
|
|
version: "3.8"
|
|
|
|
services:
|
|
app:
|
|
image: phlak/mumble
|
|
networks:
|
|
- proxy
|
|
volumes:
|
|
- "mumble_data:/etc/mumble"
|
|
deploy:
|
|
restart_policy:
|
|
condition: on-failure
|
|
labels:
|
|
- "traefik.enable=true"
|
|
# note(3wc) see https://github.com/PHLAK/docker-mumble/issues/15
|
|
- "traefik.tcp.routers.${STACK_NAME}.entrypoints=mumble"
|
|
- "traefik.tcp.routers.${STACK_NAME}.service=${STACK_NAME}-tcp-service"
|
|
- "traefik.tcp.routers.${STACK_NAME}.rule=HostSNI(`*`)"
|
|
- "traefik.tcp.routers.${STACK_NAME}.tls.passthrough=true"
|
|
- "traefik.tcp.services.${STACK_NAME}-tcp-service.loadbalancer.server.port=64738"
|
|
- "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"
|
|
# note(3wc): this image doesn't have curl, and wget doesn't seem to like
|
|
# testing the TCP port
|
|
#healthcheck
|
|
# test: ["CMD", "curl", "-f", "http://localhost"]
|
|
# interval: 30s
|
|
# timeout: 10s
|
|
# retries: 10
|
|
# start_period: 1m
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
|
|
volumes:
|
|
mumble_data:
|