Compare commits
3 Commits
2efdae9cf7
...
fba60774d6
Author | SHA1 | Date |
---|---|---|
josiah | fba60774d6 | 4 months ago |
josiah | 35f7d0beb7 | 4 months ago |
josiah | e879095816 | 4 months ago |
@ -0,0 +1,36 @@
|
||||
---
|
||||
|
||||
plex_ports:
|
||||
- description: for access to the Plex Media Server [required]
|
||||
port: 32400
|
||||
protocol: tcp
|
||||
- description: "https://forums.plex.tv/t/port-32401-is-listening-whats-it-used-for/83080"
|
||||
port: 32401
|
||||
protocol: tcp
|
||||
- description: for access to the Plex DLNA Server
|
||||
port: 1900
|
||||
protocol: udp
|
||||
- description: for controlling Plex Home Theater via Plex Companion
|
||||
port: 3005
|
||||
protocol: tcp
|
||||
- description: for older Bonjour/Avahi network discovery
|
||||
port: 5353
|
||||
protocol: udp
|
||||
- description: for controlling Plex for Roku via Plex Companion
|
||||
port: 8324
|
||||
protocol: tcp
|
||||
- description: for current GDM network discovery
|
||||
port: 32410
|
||||
protocol: udp
|
||||
- description: for current GDM network discovery
|
||||
port: 32412
|
||||
protocol: udp
|
||||
- description: for current GDM network discovery
|
||||
port: 32413
|
||||
protocol: udp
|
||||
- description: for current GDM network discovery
|
||||
port: 32414
|
||||
protocol: udp
|
||||
- description: for access to the Plex DLNA Server
|
||||
port: 32469
|
||||
protocol: tcp
|
@ -1,5 +1,20 @@
|
||||
# abjure
|
||||
This role deploys media servers we use to serve the home and halo.
|
||||
|
||||
## why are you using swarm AND compose
|
||||
|
||||
I wanted to have plex handled as part of swarm, but:
|
||||
a) it doesn't fucking matter becuase I don't intend to have fault
|
||||
tolerance for plex; i'm not even sure it can run well in a clustered
|
||||
way
|
||||
|
||||
b) its just much much easier to get compose working rather than
|
||||
swarm. One day maybe i'd like to do that so that its a single stack to
|
||||
deliver, but meh.
|
||||
|
||||
## notes
|
||||
If a container is failing, use docker service logs mediaserver_SERVICENAME to see the logs from the failed containers
|
||||
- If a container is failing, use docker service logs mediaserver_SERVICENAME to see the logs from the failed containers
|
||||
- If you're installing this from scratch and building a new plex server then you MUST setup plex from the localhost:
|
||||
- Create an ssh tunnel like this `ssh josiah@192.168.1.120 -L 32400:localhost:32400 -N`
|
||||
- then open `localhost:32400/web` in your browser
|
||||
- If you don't add the `/web` to the end of your request, you're going to get unformatted xml and you'll think you broke something. This will cost you a lot of time :(
|
||||
|
@ -0,0 +1,24 @@
|
||||
version: '3.7'
|
||||
services:
|
||||
plex:
|
||||
image: plexinc/pms-docker:latest
|
||||
environment:
|
||||
- "TZ=America/Chicago"
|
||||
- "PLEX_CLAIM={{ vault_pms_claim_token }}"
|
||||
- "ADVERTISE_IP=http://pms.services.jowj.net:32400/"
|
||||
- "VERSION=docker"
|
||||
- "UMASK_SET=022"
|
||||
hostname: pms
|
||||
volumes:
|
||||
- /home/josiah/apps/plex/config:/config
|
||||
- /home/josiah/apps/plex/transcode:/transcode
|
||||
- /media/usenet:/data
|
||||
devices:
|
||||
- /dev/dri:/dev/dri
|
||||
network_mode: bridge
|
||||
ports:
|
||||
# Note that traefik isn't used for these ports - we're just exposing them directly
|
||||
{% for port in plex_ports %}
|
||||
- "{{ port.port }}:{{ port.port }}/{{ port.protocol }}"
|
||||
{% endfor %}
|
||||
|
@ -1,3 +1,3 @@
|
||||
create_users: ['josiah', 'alice']
|
||||
copy_local_key: "{{ lookup('file', lookup('env','HOME') + '/.ssh/home-net.pub') }}"
|
||||
sys_packages: [ 'sudo', 'python3-docker', 'python3-pip','python3-jsondiff', 'python3-yaml', 'docker-ce', 'docker-ce-cli', 'containerd.io', 'docker-buildx-plugin', 'docker-compose-plugin' ]
|
||||
sys_packages: [ 'sudo', 'python3-docker', 'python3-pip','python3-jsondiff', 'python3-yaml', 'docker-ce', 'docker-ce-cli', 'containerd.io', 'docker-buildx-plugin', 'docker-compose-plugin', 'docker-compose' ]
|
||||
|
Loading…
Reference in new issue