From 66ed1f76d9ddff11824adedbb3155044cd0d503c Mon Sep 17 00:00:00 2001 From: sporada Date: Thu, 25 Mar 2021 14:44:49 +0100 Subject: [PATCH] Add ts3 service --- ts3/README.md | 3 +++ ts3/docker-compose.yml | 44 ++++++++++++++++++++++++++++++++++++++++++ ts3/live.env.tpl | 15 ++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 ts3/README.md create mode 100644 ts3/docker-compose.yml create mode 100644 ts3/live.env.tpl diff --git a/ts3/README.md b/ts3/README.md new file mode 100644 index 0000000..0e8e94e --- /dev/null +++ b/ts3/README.md @@ -0,0 +1,3 @@ +No traefik ready! + +This is service is not routed by traefik because the UDP routing causes package loss. diff --git a/ts3/docker-compose.yml b/ts3/docker-compose.yml new file mode 100644 index 0000000..eeee3c5 --- /dev/null +++ b/ts3/docker-compose.yml @@ -0,0 +1,44 @@ +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 diff --git a/ts3/live.env.tpl b/ts3/live.env.tpl new file mode 100644 index 0000000..5c46304 --- /dev/null +++ b/ts3/live.env.tpl @@ -0,0 +1,15 @@ +DOMAIN=sporada.eu + +### TS3 Server ### +TS3SERVER_DB_PLUGIN=ts3db_mariadb +TS3SERVER_DB_SQLCREATEPATH=create_mariadb +TS3SERVER_DB_HOST=db +TS3SERVER_DB_USER=root +TS3SERVER_DB_PASSWORD=password_db +TS3SERVER_DB_NAME=teamspeak +TS3SERVER_DB_WAITUNTILREADY=30 +TS3SERVER_LICENSE=accept + +### Mariadb ### +MYSQL_ROOT_PASSWORD=password_db +MYSQL_DATABASE=teamspeak