An easy way to get a TeamSpeak server up and running using Docker.
dockerhandcodedshellteamspeakteamspeak3voice-chat
1# -----------------------------------------------------------------------------
2# docker-teamspeak
3#
4# Builds a basic docker image that can run TeamSpeak
5# (http://teamspeak.com/).
6#
7# Authors: Isaac Bythewood, Jamie Tanna
8# Updated: January 6th, 2017
9# Require: Docker (http://www.docker.io/)
10# -----------------------------------------------------------------------------
11
12# Base system is Ubuntu 16.04
13FROM ubuntu:16.04
14
15# Set the Teamspeak version to download
16ENV TSV=3.2.0
17
18# Download and install everything from the repos.
19RUN DEBIAN_FRONTEND=noninteractive \
20 apt-get -y update && \
21 apt-get -y install bzip2 ca-certificates && \
22 rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
23 apt-get autoremove -y && \
24 apt-get clean
25
26# Download and install TeamSpeak 3
27# Add secondary/backup server as well -- allow users to choose in case of blacklisting.
28ADD http://dl.4players.de/ts/releases/${TSV}/teamspeak3-server_linux_amd64-${TSV}.tar.bz2 ./
29ADD CHECKSUMS ./
30RUN sha256sum -c CHECKSUMS
31
32RUN tar jxf teamspeak3-server_linux_amd64-$TSV.tar.bz2 && \
33 mv teamspeak3-server_linux_amd64 /opt/teamspeak && \
34 rm teamspeak3-server_linux_amd64-$TSV.tar.bz2
35
36# Load in all of our config files.
37ADD ./scripts/start /start
38
39# Fix all permissions
40RUN chmod +x /start
41
42# /start runs it.
43EXPOSE 9987/udp
44EXPOSE 30033
45EXPOSE 10011
46
47RUN useradd teamspeak && mkdir /data && chown teamspeak:teamspeak /data
48VOLUME ["/data"]
49USER teamspeak
50CMD ["/start"]