From 7ffd6b8638ea4cb58d219abefde906b0c2eff341 Mon Sep 17 00:00:00 2001 From: sporada Date: Thu, 22 Apr 2021 16:32:44 +0200 Subject: [PATCH] Update 'ts3/docker-compose.yml' --- ts3/docker-compose.yml | 77 +++++++++++++++++++++--------------------- 1 file changed, 38 insertions(+), 39 deletions(-) diff --git a/ts3/docker-compose.yml b/ts3/docker-compose.yml index eeee3c5..c75dd36 100644 --- a/ts3/docker-compose.yml +++ b/ts3/docker-compose.yml @@ -1,44 +1,43 @@ version: '3.5' -#networks: -# default: -# external: -# name: traefik_default +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" + teamspeak-app: + networks: + - default + image: teamspeak:latest + env_file: live.env + container_name: ts3-service + restart: unless-stopped + volumes: + - ./ts3:/var/ts3server + depends_on: + - teamspeak-db + labels: + # Watchtower + - "com.centurylinklabs.watchtower.enable=true" + # Traefik + - "traefik.enable=true" + # tcp + - "traefik.tcp.routers.teamspeak-tcp.entrypoints=ts-tcp" + - "traefik.tcp.routers.teamspeak-tcp.service=teamspeak-tcp" + - "traefik.tcp.routers.teamspeak-tcp.rule=HostSNI(`ts3.${DOMAIN}`)" + - "traefik.tcp.services.teamspeak-tcp.loadbalancer.server.port=30033" + # udp + - "traefik.udp.routers.teamspeak-udp.entrypoints=ts-udp" + - "traefik.udp.routers.teamspeak-udp.service=teamspeak-udp" + - "traefik.udp.services.teamspeak-udp.loadbalancer.server.port=9987" - db: - #networks: - # - default - image: mariadb:10 - env_file: live.env - container_name: ts3-db - restart: unless-stopped - volumes: - - ./db:/var/lib/mysql +teamspeak-db: + networks: + - default + image: mariadb:10 + env_file: live.env + container_name: ts3-db + restart: unless-stopped + volumes: + - ./db:/var/lib/mysql