Skip to content

Instantly share code, notes, and snippets.

@figassis
Last active June 8, 2019 14:04
Show Gist options
  • Save figassis/9b42187034e5605f41301b43dcefa81a to your computer and use it in GitHub Desktop.
Save figassis/9b42187034e5605f41301b43dcefa81a to your computer and use it in GitHub Desktop.
Media Center
#!/bin/bash
export USER_ID=$UID
docker-compose down; docker-compose up -d --force-recreate
version: '3'
services:
plex:
image: plexinc/pms-docker
restart: always
container_name: plex
hostname: PlexServer
network_mode: host
depends_on:
- deluge
- filebot
environment:
TZ: "Africa/Luanda"
PLEX_UID: $USER_ID
PLEX_GID: $USER_ID
CHANGE_CONFIG_DIR_OWNERSHIP: 'false'
PLEX_CLAIM: $CLAIM
volumes:
- ~/media/config:/config
- ~/media/transcode:/transcode
- ~/media/downloads/complete:/data
filebot:
image: coppit/filebot
restart: always
container_name: filebot
depends_on:
- deluge
environment:
PGID: $USER_ID
PUID: $USER_ID
volumes:
- ~/media/downloads:/media:rw
- ~/media/filebot:/config:rw
deluge:
image: jakexks/deluge-torrent-seedbox
restart: always
container_name: deluge
ports:
- 80:80
- 8112:8112
- 58846:58846
- 58847:58847
- 58847:58847/udp
environment:
PGID: $USER_ID
PUID: $USER_ID
volumes:
- ~/media/downloads:/home/deluge
CLAIM=plexserverclaim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment