23MB docker container running a Teamspeak 3.13.6 server
It is based on:
(If you want persistence) Create two directories ./data
and ./logs
and apply the correct ownership and permissions with:
mkdir -p data logs
chown 1000 data logs
chmod 700 data logs
Note that you can set chown
to another UID (i.e. 8000
) provided you run the container with --user=8000
.
Use the following command:
docker run -d -p 9987:9987/udp -p 10011:10011/tcp -p 30033:30033/tcp \
-e TS3SERVER_LICENSE=accept \
-v $(pwd)/data:/teamspeak/data -v $(pwd)/logs:/teamspeak/logs \
qmcgaw/teamspeak3-alpine
data
directory contains the database ts3server.sqlitedb
, and IP blacklist and whitelist query_ip_blacklist.txt
and query_ip_whitelist.txt
logs
directory contains text log filesor use docker-compose.yml with:
docker-compose up -d
On the first run, if your bind mounts contain no files, you will have likely to run on your host:
chmod 700 data/ts3server.sqlitedb
On your Docker host, enter
ip address
You can find your host LAN IP address to use to connect to the Teamspeak server.
On your Docker host, enter the following:
docker logs teamspeak
You should see a few lines similar to:
2018-04-16 02:54:18.228719|WARNING |VirtualServer |1 |--------------------------------------------------------
2018-04-16 02:54:18.228789|WARNING |VirtualServer |1 |ServerAdmin privilege key created, please use the line below
2018-04-16 02:54:18.228825|WARNING |VirtualServer |1 |token=u3bJyR+ZcUJRxgJ+CKsJmQgygR+gMuPMz7qkyaQa
2018-04-16 02:54:18.228855|WARNING |VirtualServer |1 |--------------------------------------------------------
Copy the token u3bJyR+ZcUJRxgJ+CKsJmQgygR+gMuPMz7qkyaQa
to identify as the administrator using the Teamspeak client.
In your Teamspeak client, follow the instructions as shown on the following pictures:
Enter the Docker host LAN IP address as well as your admin token you previously copied.
You are now connected as administrator to your Teamspeak server
You might want now to:
On your Docker host, enter
wget -qO- https://ipinfo/ip
This is the public IP address of your Docker host and therefore of your Teamspeak server for people outside your network
In your Teamspeak client, follow the instructions as shown on the following pictures:
Enter the public IP address previously found, or your domain name if you have one.
You should now be connected to your Teamspeak server as before. Note that your credentials data is stored on your computer so it won't ask you for the admin token or a password.
If you get a message similar to:
The default license has expired. Please use the latest server version
Then you can try first pulling the lates image docker pull qmcgaw/teamspeak3-alpine
or build it yourself.
To build yourself:
git
installedRun this build command (which is also quick):
docker build --build-arg TEAMSPEAK_VERSION=3.13.6 \
-t qmcgaw/teamspeak3-alpine \
https://github.com/qdm12/teamspeak-server-alpine.git
You can also specify the build argument --build-arg ALPINE_VERSION=3.14
if you want.