Skip to content

Instantly share code, notes, and snippets.

@misury
Last active June 8, 2017 12:51
Show Gist options
  • Save misury/188515d0ba39a0d032a66b65160e8a72 to your computer and use it in GitHub Desktop.
Save misury/188515d0ba39a0d032a66b65160e8a72 to your computer and use it in GitHub Desktop.
Misury Plex Server via Docker-Compose
#!/bin/bash
export PGID=1001
export PUID=1001
docker-compose pull
docker-compose up -d
---
version: '2'
services:
nzbget:
image: linuxserver/nzbget
container_name: nzbget
volumes:
- /home/plex/nzbget/config:/config
- /home/plex/Downloads:/downloads
- /home/plex/Downloads/Complete:/downloads/complete
ports:
- 6789:6789
restart: always
environment:
- PUID=${PUID}
- PGID=${PGID}
plex:
image: plexinc/pms-docker:plexpass
container_name: plex
volumes:
- /home/plex/plex:/config
- /home/plex/Downloads/Complete/Movies:/movies
- /home/plex/Downloads/Complete/Tvshows:/tvshows
network_mode: host
ports:
- 32400:32400
restart: always
environment:
- PLEX_CLAIM="<get from https://www.plex.tv/claim/>"
- PUID=${PUID}
- PGID=${PGID}
plexpy:
image: linuxserver/plexpy
container_name: plexpy
depends_on:
- plex
volumes:
- /home/plex/plexpy:/config
- /home/plex/Library/Application\ Support/Plex\ Media\ Server/Logs:/logs:ro
ports:
- 8181:8181
links:
- plex
restart: always
environment:
- PUID=${PUID}
- PGID=${PGID}
sonarr:
image: linuxserver/sonarr
container_name: sonarr
depends_on:
- nzbget
volumes:
- /home/plex/sonarr:/config
- /home/plex/Downloads/Tvshows:/tv
- /home/plex/Downloads/Complete/Tvshows:/downloads
ports:
- 8989:8989
links:
- nzbget
restart: always
environment:
- PUID=${PUID}
- PGID=${PGID}
radarr:
image: linuxserver/radarr
container_name: radarr
volumes:
- /home/plex/radarr:/config
- /home/plex/Downloads/Movies:/movies
- /home/plex/Downloads/Complete/Movies:/downloads
ports:
- 7878:7878
environment:
- PUID=${PUID}
- PGID=${PGID}
restart:
always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment