o1-preview-2024-09-12· OpenAI
WildChat-4.8M (AI2)
Can you make me a docker compose yml file for running plex deploying from linuxserver.io?
- User
Can you make me a docker compose yml file for running plex deploying from linuxserver.io?
- Assistant
Can you make me a docker compose yml file for running plex deploying from linuxserver.io?
Certainly! Below is a docker-compose.yml file that you can use to deploy Plex Media Server using the linuxserver/plex image from LinuxServer.io. This configuration will help you set up Plex with the necessary environment variables, volume mappings, and network ports.
version: '2.1'
services:
plex:
image: linuxserver/plex
container_name: plex
environment:
- PUID=1000 # Replace with your user's UID
- PGID=1000 # Replace with your user's GID
- VERSION=docker # Optional: 'docker' for Docker version, 'public' for public version, 'plexpass' for Plex Pass version
volumes:
- /path/to/config:/config
- /path/to/tvseries:/data/tvshows
- /path/to/movies:/data/movies
# Add more media directories as needed
ports:
- 32400:32400/tcp # Plex Web UI and API
- 3005:3005/tcp # Plex Sync
- 8324:8324/tcp # Plex for Roku
- 32469:32469/tcp # GDM network discovery
- 1900:1900/udp # DLNA
- 32410:32410/udp # GDM network discovery
- 32412:32412/udp # GDM network discovery
- 32413:32413/udp # GDM network discovery
- 32414:32414/udp # GDM network discovery
restart: unless-stopped
Instructions to Customize the Configuration:
User and Group IDs (PUID and PGID):
id -u yourusername # For UID
id -g yourusername # For GID
1000 with your actual UID and GID.Volume Mappings:
/path/to/config:
/path/to/tvseries and /path/to/movies:
Ports:
external_port:internal_port).Plex Version (VERSION):
VERSION environment variable specifies which version of Plex to run.
docker: Use the version provided by the Docker image (default).public: Use the latest public version.plexpass: Use the Plex Pass version (requires Plex Pass account).Save and Deploy:
docker-compose.yml in a directory of your choice.docker-compose up -d
linuxserver/plex image if you don't have it and start the container in detached mode.Accessing Plex:
http://your_server_ip:32400/web
Additional Notes:
docker-compose pull
docker-compose up -d
docker-compose logs -f
PUID and PGID values.Feel free to ask if you need further assistance or have questions about customizing your Plex setup!
Not yet included in a published release.