Update 'ts3/docker-compose.yml'
This commit is contained in:
parent
c1995fb9b6
commit
7ffd6b8638
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user