teamspeak3/README.md

60 lines
2.2 KiB
Markdown
Raw Permalink Normal View History

2014-04-10 10:05:59 +00:00
### docker-teamspeak3
2014-04-08 18:27:42 +00:00
2014-04-11 14:55:06 +00:00
Ubuntu with TS3 Server.
2014-04-10 09:58:54 +00:00
2014-04-10 10:05:59 +00:00
#### Summary
* Ubuntu
2014-04-10 12:55:08 +00:00
* Teamspeak 3 Server
2014-04-11 14:55:06 +00:00
* Some files can be injected to host:
* query_ip_whitelist.txt
* query_ip_blacklist.txt
* logs
* files (Not yet)
2014-04-16 10:40:08 +00:00
* ts3server.sqlitedb
2014-04-11 14:55:06 +00:00
* licence (Maybe; Dont have one)
* ts3server.ini (Not tested)
2014-04-16 10:40:08 +00:00
#### Usage
* Infos
The script does look for an sqlite db in the linked host-folder.
If its found, a symlink is created to the ts3-folder inside the container.
This means the server should use your old ts3 db if present.
If not present it will create a new one, right now this will NOT be created under the linked host-folder!
The problem here is i cant tell the TS3 server to create the db in specific folder.
Creating a empty file and then linking this did not work either since TS3 is then complaining its no sqlite db.
Script will also look for ts3server.ini in linked host-folder. This file will also be created if its not
found since TS3-server has a paramater for that. If you use your own ini-file you may want to link logs and other data to /teamspeak3.
This way you can mount the directory and backup/persist the data even when upgrading.
The files-directory is also currently not persisted in the linked host-folder.
2014-04-11 14:55:06 +00:00
* Build container (optional)
2014-04-11 14:55:24 +00:00
2014-04-16 10:40:08 +00:00
Just in case you dont wanna use the index.
`docker build https://github.com/luzifer-docker/docker-teamspeak3.git`
2014-04-11 14:55:06 +00:00
2014-04-16 10:40:08 +00:00
2014-04-11 14:55:06 +00:00
* Create container
2014-04-10 10:15:58 +00:00
2014-04-11 14:55:06 +00:00
This creates and starts a docker container in the
background (-d) with
direct mapping of the TS3 port (-p 9987:9987/udp)
2014-04-10 10:15:58 +00:00
and sets the name to TS3.
2014-04-11 14:55:06 +00:00
{FOLDER} is an absolute path on the host to be mapped by the containers /teamspeak3 folder.
Injected files are used from this location, see Summary above.
`docker run --name TS3 -d -p 9987:9987/udp -v {FOLDER}:/teamspeak3 luzifer/teamspeak3`
2014-04-11 14:55:24 +00:00
2014-04-11 14:55:06 +00:00
* Admin Secret
After starting the container you probably want to get the Admin secret with:
`docker logs TS3`
2014-04-11 14:55:06 +00:00
* Upgrading
2014-04-16 10:40:08 +00:00
Just stop and remove the old container, then start again at "Creating container". You may have to pull the image again if its not updating.
CAUTION: Didnt test if all files are really persisted or if the TS3 process overwrites some files. So make sure you have a backup.