Add ts3 service
This commit is contained in:
		
							
								
								
									
										3
									
								
								ts3/README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								ts3/README.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
No traefik ready!
 | 
			
		||||
 | 
			
		||||
This is service is not routed by traefik because the UDP routing causes package loss.
 | 
			
		||||
							
								
								
									
										44
									
								
								ts3/docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								ts3/docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							@@ -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
 | 
			
		||||
							
								
								
									
										15
									
								
								ts3/live.env.tpl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								ts3/live.env.tpl
									
									
									
									
									
										Normal file
									
								
							@@ -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
 | 
			
		||||
		Reference in New Issue
	
	Block a user