Public | Automated Build

Last pushed: a year ago
Short Description
A docker container to running a teamspeak server with a separated MariaDB docker container
Full Description

#docker-teamspeak

forked from https://github.com/SolidNerd/docker-teamspeak

Introduction

A docker container to running a teamspeak server with a separated MariaDB docker container.

Run MariaDB container

  1. Create a Docker Network for later connections

     docker network create --driver bridge <YOUR_NETWORK_NAME>
    
  2. Start A MariaDB Instance

     docker run -d --name="<YOUR_MARIADB_NAME>" --net="<YOUR_NETWORK_NAME>" -e MYSQL_ROOT_PASSWORD=<YOUR_MYSQL_ROOT_PASSWORD> -e MYSQL_DATABASE=<YOUR_MYSQL_TEAMSPEAK_DATABASE> -e MYSQL_USER=<YOUR_MYSQL_TEAMSPEAK_USER> -e MYSQL_PASSWORD=<YOUR_MYSQL_TEAMSPEAK_PASSWORD> mariadb:latest
    

Setup Teamspeak Server and Credentials

  1. Create an .envfile

     mkdir -p /opt/teamspeak.conf
     nano /opt/teamspeak.conf/teamspeak.envfile
    
  2. Just enter the Credentials from above

     MYSQL_DATABASE=<YOUR_MYSQL_TEAMSPEAK_DATABASE>
     MYSQL_USER=<YOUR_MYSQL_TEAMSPEAK_USER>
     MYSQL_PASSWORD=<YOUR_MYSQL_TEAMSPEAK_PASSWORD>
     TS3_MARIADB_HOST=<YOUR_MARIADB_NAME>
     TS3_MARIADB_PORT=3306
    
  3. Run Teamspeak Server and expose the ports manually

     docker run -d --net="<YOUR_NETWORK_NAME>" --env-file=/opt/teamspeak.conf/teamspeak.envfile -p 9987:9987/udp -p 10011:10011 -p 30033:30033 --name <YOUR_TEAMSPEAK_NAME> c3b-watzefak/teamspeak:latest
    

Available Configuration Parameters

Please refer the docker run command options for the --env-file flag where you can specify all required environment variables in a single file. This will save you from writing a potentially long docker run command. Alternatively you can use docker-compose.

Below is the complete list of available options that can be used to customize your TeamSpeak installation.

  • TS_USER: User which owns the teamspeak_server pid. Defaults to teamspeak
  • TS_HOME: Directory of the containing teamspeak file. Defaults to /teamspeak
  • LOG_QUERY_COMMANDS:Directory of the containing teamspeak file. Defaults to 0
  • MACHINE_ID: Optional name of this server process to identify a group of servers with
    the same ID. This can be useful when running multiple TeamSpeak 3 Server
    instances on the same database. Please note that we strongly recommend that
    you do NOT run multiple server instances on the same SQLite database. Default is not used.
  • TS3_LICENSE_PATH: The physical path where your license file is located. Default is Empty.
  • DEFAULT_VOICE_PORT: UDP port open for clients to connect to. This port is used by the first virtual server, subsequently started virtual servers will open on increasing port numbers Defautls to 9987
  • VOICE_IP: IP on which the server instance will listen for incoming voice connections. Defaults to 0.0.0.0
  • FILE_TRANSFER_PORT: TCP Port opened for file transfers. If you specify this parameter, you also need to specify the FILE_TRANSFER_IP envoirment variable! Defautls to 30033
  • FILE_TRANSFER_IP: IP on which the file transfers are bound to. If you specify this parameter, you also need to specify the FILE_TRANSFER_PORT envoirment variable! Defaults to 0.0.0.0
  • QUERY_PORT:TCP Port opened for file transfers. If you specify this parameter, you also need to specify the QUERY_IP envoirment variable! Defautls to 10011
  • QUERY_IP: IP bound for incoming ServerQuery connections. If you specify this parameter, you also need to specify the QUERY_PORT envoirment variable! Defaults to 0.0.0.0
  • QUERY_IP_WHITELIST: The file containing whitelisted IP addresses for the ServerQuery interface. All hosts listed in this file will be ignored by the ServerQuery flood protection. Defaults to query_ip_whitelist.txt
  • QUERY_IP_BLACKLIST: The file containing backlisted IP addresses for the ServerQuery interface. All hosts listed in this file will be ignored by the ServerQuery flood protection. Defaults to query_ip_blacklist.txt
  • LOG_PATH: The physical path where the server will create logfiles. Defaults to logs/
  • LOG_QUERY_COMMAND: If set to "1", the server will log every ServerQuery command executed by clients. This can be useful while trying to diagnose several different issues. Defaults to 0
  • DB_CLIENT_KEEP_DAYS: Defines how many days to keep unused client identities. Auto-pruning is triggered on every start and on every new month while the server is running. Defaults to 30.
  • LOG_APPEND: If set to "1", the server will not create a new logfile on every start. Instead, the log
    output will be appended to the previous logfile. The logfile name will only contain the
    ID of the virtual server. Defaults to 0.
  • QUERY_SKIP_BRUTEFORCE_CHECK: Defaults to 0.

  • TS3_MARIADB_DB: Name of the Database. Default to Not Set.

  • TS3_MARIADB_USER: Database User. Default to Not Set.
  • TS3_MARIADB_PASS: Database User Password. Default to Not Set.
  • TS3_MARIADB_HOST: Hostname of the DatabaseServer like localhost Default to Not Set.
  • TS3_MARIADB_PORT: DatabaseServer Port. Default to Not Set.

LICENSE

The MIT License (MIT)

Copyright (c) 2016 Niclas Mietz; some additions by Eibo Richter

Docker Pull Command
Owner
watzefak
Source Repository

Comments (0)