Skip to content

Commit

Permalink
feat(core): add overlay network to communicate internally with plex
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanbeldad committed Jun 17, 2018
1 parent b6222fb commit 8ba5d2b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ services:
hostname: plex-${MEDIA_USERNAME}
networks:
- macvlan
- internal
environment:
- PLEX_UID=${MEDIA_UID}
- PLEX_GID=${MEDIA_GID}
Expand Down Expand Up @@ -35,6 +36,7 @@ services:
- jackett
networks:
- bridge
- internal
environment:
- PUID=${MEDIA_UID}
- PGID=${MEDIA_GID}
Expand All @@ -51,6 +53,7 @@ services:
- jackett
networks:
- bridge
- internal
environment:
- PUID=${MEDIA_UID}
- PGID=${MEDIA_GID}
Expand Down Expand Up @@ -89,6 +92,7 @@ services:
- plex
networks:
- bridge
- internal
environment:
- PUID=${MEDIA_UID}
- PGID=${MEDIA_GID}
Expand All @@ -110,3 +114,6 @@ networks:
driver: bridge
macvlan:
external: true
internal:
driver: overlay
internal: true
17 changes: 17 additions & 0 deletions nginx/docker/default.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
upstream plex-upstream {
server plex:32400;
}

server {
listen 32400;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
proxy_buffering off;
proxy_pass http://plex-upstream;
}
}

server {
listen 8989;
location / {
Expand Down

0 comments on commit 8ba5d2b

Please sign in to comment.