Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Added info about TS3_UID
  • Loading branch information
devalx authored Jul 26, 2016
1 parent 323bf73 commit bd34773
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ The old image used root to run the ts3-server and there all created files had ro
Also the volumes inside the container have changed, the strcture itself should be the same - so the docker run command will differ slightly from the old version.

### Usage v2
I recommend to use a data-container or the new 'docker volume' command in conjunction with this TS3-Container, but its obviously up to you.
I recommend to use the new 'docker volume' command in conjunction with this TS3-Container, but its obviously up to you.

#### docker volume create (Since docker-engine 1.9 - RECOMMENDED)
```
docker volume create --name ts3-data
docker run --name=ts3 -p 9987:9987/udp -p 30033:30033 -p 10011:10011 -v ts3-data:/home/ts3/data devalx/docker-teamspeak3:latest
```

#### data container

Expand All @@ -32,17 +38,19 @@ docker run --name=ts3 -d --volumes-from ts3-data -p 9987:9987/udp -p 30033:30033

The data-container does not need to be running for this to work.

#### docker volume create (Since docker-engine 1.9)
```
docker volume create --name ts3-data
docker run --name=ts3 -p 9987:9987/udp -p 30033:30033 -p 10011:10011 -v ts3-data:/home/ts3/data devalx/docker-teamspeak3:latest
```

#### Mounted Host-directory
```
docker run --name ts3 -d -p 9987:9987/udp -p 30033:30033 -p 10011:10011 -v {FOLDER}:/home/ts3/data devalx/docker-teamspeak3:latest
```

If you experience permission problems, especially after an upgrade, you can use the TS3_UID-env to set the user for the teamspeak-server process (inside the container). When using an mounted host-directory, the owner of the files will be the UID of this internal user (default is 1000)

```
docker run --name ts3 -d -p -e TS3_UID=1001 9987:9987/udp -p 30033:30033 -p 10011:10011 -v {FOLDER}:/home/ts3/data devalx/docker-teamspeak3:latest
```
This would change the internal user to an UID of 1001.


#### MariaDB

This is still WIP.
Expand Down

0 comments on commit bd34773

Please sign in to comment.