diff --git a/README.md b/README.md index a6a609f..4275f17 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,7 @@ with Spring framework and a Postgres database. - [`Traefik`](https://github.com/docker/awesome-compose/tree/master/traefik-golang) - [`Django`](https://github.com/docker/awesome-compose/tree/master/django) - [`Minecraft server`](https://github.com/docker/awesome-compose/tree/master/minecraft) +- [`Plex`](https://github.com/docker/awesome-compose/tree/master/plex) ## Basic setups for different platforms (not production ready - useful for personal use) - [`Gitea / PostgreSQL`](https://github.com/docker/awesome-compose/tree/master/gitea-postgres) - [`Nextcloud / PostgreSQL`](https://github.com/docker/awesome-compose/tree/master/nextcloud-postgres) diff --git a/plex/.env b/plex/.env new file mode 100644 index 0000000..5154992 --- /dev/null +++ b/plex/.env @@ -0,0 +1 @@ +PLEX_MEDIA_PATH=/media/your/plex/path diff --git a/plex/README.md b/plex/README.md new file mode 100644 index 0000000..0839ee2 --- /dev/null +++ b/plex/README.md @@ -0,0 +1,57 @@ +## Plex +This example provides a base setup for using [Plex](https://www.plex.tv/). +More details on how to customize the installation and the compose file can be found in [linuxserver documentation](https://github.com/linuxserver/docker-plex). +Alternatively, you can use different plex images (e.g. official plex image by [plexinc](https://github.com/plexinc/pms-docker)) + + +Project structure: +``` +. +├── .env +├── docker-compose.yaml +└── README.md +``` + +[_docker-compose.yaml_](docker-compose.yaml) +``` yaml +services: + plex: + image: linuxserver/plex:latest +``` + +## Configuration + +### .env +Before deploying this setup, you need to configure the following values in the [.env](.env) file. +- PLEX_MEDIA_PATH + +### Hardware Acceleration +Check out the description for Hardware Acceleration support in the [documentation](https://github.com/linuxserver/docker-plex). + +## Deploy with docker-compose +When deploying this setup, the web interface will be available on port 32400 (e.g. http://localhost:32400/web). + +``` shell +$ docker-compose up -d +Starting plex ... done +``` + + +## Expected result + +Check containers are running: +``` +$ docker ps +CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES +62fc3ff1f1a0 ghcr.io/linuxserver/plex:latest "/init" 38 seconds ago Up 3 seconds plex +``` + +Navigate to `http://localhost:32400/web` in your web browser to access the plex web interface. + + +Stop the containers with +``` shell +$ docker-compose down +# To delete all data run: +$ docker-compose down -v +``` diff --git a/plex/docker-compose.yaml b/plex/docker-compose.yaml new file mode 100644 index 0000000..f628583 --- /dev/null +++ b/plex/docker-compose.yaml @@ -0,0 +1,11 @@ +version: '3.7' +services: + plex: + image: ghcr.io/linuxserver/plex:latest + container_name: plex + network_mode: host + environment: + - VERSION=docker + restart: always + volumes: + - ${PLEX_MEDIA_PATH}:/media/ \ No newline at end of file