Add docker-compose configuration for plex service
This commit is contained in:
45
plex/docker-compose.yml
Normal file
45
plex/docker-compose.yml
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
---
|
||||||
|
version: "2.1"
|
||||||
|
services:
|
||||||
|
plex:
|
||||||
|
image: lscr.io/linuxserver/plex:latest
|
||||||
|
container_name: plex
|
||||||
|
environment:
|
||||||
|
- PUID=1000
|
||||||
|
- PGID=1006
|
||||||
|
- TZ=America/New_York
|
||||||
|
- VERSION=docker
|
||||||
|
- PLEX_CLAIM=YourClaimString
|
||||||
|
volumes:
|
||||||
|
- /docker-containers/plex:/config
|
||||||
|
- /TvShows:/tv
|
||||||
|
- /Music:/music
|
||||||
|
- /Movies:/movies
|
||||||
|
- /Videos:/videos
|
||||||
|
- /Pictures:/pictures
|
||||||
|
- /docker-containers/swag-letsencrypt/etc/letsencrypt/live/example.com/fullchain.pem:/rcs1/certs/fullchain.pem:r
|
||||||
|
- /docker-containers/swag-letsencrypt/etc/letsencrypt/live/example.com/privkey.pem:/rcs1/certs/privkey.pem:r
|
||||||
|
devices:
|
||||||
|
- /dev/dri/renderD128:/dev/dri/renderD128
|
||||||
|
ports:
|
||||||
|
- 32400:32400
|
||||||
|
- 33400:33400 # webtools shit
|
||||||
|
- 1900:1900/udp
|
||||||
|
- 3005:3005
|
||||||
|
#- 5353:5353/udp #bonjour shit
|
||||||
|
- 8324:8324
|
||||||
|
- 32410:32410/udp
|
||||||
|
- 32412:32412/udp
|
||||||
|
- 32413:32413/udp
|
||||||
|
- 32414:32414/udp
|
||||||
|
- 32469:32469
|
||||||
|
restart: unless-stopped
|
||||||
|
stdin_open: true # to attach to containers
|
||||||
|
tty: true # also used to attach to containers
|
||||||
|
# network_mode: service:wireguard # To run through vpn service container, in turn UI port must be forwarded inside vpn. No local access unless otherwise defined
|
||||||
|
networks: # Specify network for container
|
||||||
|
- homelab
|
||||||
|
networks: # I don't know why but you have to specify the network 2x. In service, and in this tag area..
|
||||||
|
homelab:
|
||||||
|
# name: homelab # Networks can also be given a custom name, not needed if existing
|
||||||
|
external: true # This option causes compose to join the above network instead of making a _default one (supposedly)
|
||||||
Reference in New Issue
Block a user