selfhosted-traefik/ts3/docker-compose.yml
2021-03-25 14:44:49 +01:00

45 lines
1.0 KiB
YAML

version: '3.5'
#networks:
# default:
# external:
# name: traefik_default
services:
teamspeak:
#networks:
# - default
image: teamspeak:latest
env_file: live.env
container_name: ts3-service
restart: unless-stopped
volumes:
- ./ts3:/var/ts3server
depends_on:
- db
#labels:
# Watchtower
#- "com.centurylinklabs.watchtower.enable=true"
# Traefik
#- "traefik.enable=true"
#- "traefik.http.routers.teamspeak.rule=Host(`ts3.${DOMAIN}`)"
#- "traefik.http.routers.teamspeak.entrypoints=websecure"
#- "traefik.http.routers.teamspeak.tls.certresolver=myresolver"
#- "traefik.udp.routers.teamspeak.entrypoints=teamspeak"
#- "traefik.udp.services.teamspeak.loadbalancer.server.port=9987"
# TS3 ports
ports:
- "9987:9987/udp"
- "10011:10011"
- "30033:30033"
db:
#networks:
# - default
image: mariadb:10
env_file: live.env
container_name: ts3-db
restart: unless-stopped
volumes:
- ./db:/var/lib/mysql