Added docker-compose file.

This commit is contained in:
Graham Booker 2016-12-12 11:23:14 -06:00
parent 4e12825411
commit 7e6baffbc0
2 changed files with 30 additions and 0 deletions

View File

@ -30,6 +30,8 @@ docker create \
plexinc/pms-docker plexinc/pms-docker
``` ```
For those who use docker-compose, this repository provides the necessary YML file to be modified for your own use.
## Parameters ## Parameters
- `-p 32400:32400/tcp` Forwards port 32400 from the host to the container. This is the primary port that Plex uses for communication and is required for Plex Media Server to operate. - `-p 32400:32400/tcp` Forwards port 32400 from the host to the container. This is the primary port that Plex uses for communication and is required for Plex Media Server to operate.

28
docker-compose.yml Normal file
View File

@ -0,0 +1,28 @@
version: '2'
services:
plex:
container_name: plex
image: plexinc/pms-docker
restart: unless-stopped
ports:
- 32400:32400/tcp
- 3005:3005/tcp
- 8324:8324/tcp
- 32469:32469/tcp
- 1900:1900/udp
- 32410:32410/udp
- 32412:32412/udp
- 32413:32413/udp
- 32414:32414/udp
environment:
- TZ=<timezone>
- PLEX_CLAIM=<claimToken>
- ADVERTISE_IP=http://<hostIPAddress>:32400/
hostname: <hostname>
volumes:
- <path/to/plex/database>:/config
- <path/to/transcode/temp>:/transcode
- <path/to/tv/series>:/data/tvshows
- <path/to/movies>:/data/movies
- <path/to/another/media>:/data/mediaTypeA
- <path/to/some/other/media>:/data/mediaTypeB