TeamSpeak on Dokku

Published on 2019-10-18

This guide explains how to set up a TeamSpeak 3 server on Dokku (0.19.2).

Create a new Dokku app:

user@host ~$: dokku apps:create teamspeak

Create a directory for TeamSpeak to put its files into:

user@host ~$: mkdir /var/lib/dokku/data/storage/teamspeak

Have Dokku mount it:

user@host ~$: dokku storage:mount teamspeak /var/lib/dokku/data/storage/teamspeak:/var/ts3server

Publish the required ports directly via Docker:

user@host ~$: dokku docker-options:add teamspeak deploy,run -p 0.0.0.0:10011:10011/tcp
user@host ~$: dokku docker-options:add teamspeak deploy,run -p 0.0.0.0:30033:30033/tcp
user@host ~$: dokku docker-options:add teamspeak deploy,run -p 0.0.0.0:9987:9987/udp

Pull the official TeamSpeak Docker image from Docker Hub:

user@host ~$: docker pull teamspeak:3.9.1

Tag it for Dokku:

user@host ~$: docker tag teamspeak:3.9.1 dokku/teamspeak:3.9.1

Deploy it on Dokku:

user@host ~$: dokku tags:deploy teamspeak 3.9.1

TeamSpeak should be up and running now.

To update the server first pull the new image and tag it:

user@host ~$: docker pull teamspeak:X.X.X
user@host ~$: docker tag teamspeak:X.X.X dokku/teamspeak:X.X.X

Stop the Dokku app so the ports get released:

user@host ~$: dokku ps:stop teamspeak

Deploy the new server version:

user@host ~$: dokku tags:deploy teamspeak X.X.X