move plex to use definition instead of template
parent
37ce7b4568
commit
49add44f9e
@ -0,0 +1,12 @@
|
||||
---
|
||||
plex_portainer_stack_name: plex
|
||||
plex_state: present
|
||||
plex_image: lscr.io/linuxserver/plex
|
||||
plex_tag: 1.32.4
|
||||
plex_container_name: plex
|
||||
plex_expose_port: 32400
|
||||
|
||||
tautulli_container_name: tautulli
|
||||
tautulli_image: lscr.io/linuxserver/tautulli
|
||||
tautulli_tag: latest
|
||||
tautulli_expose_port: 8182
|
||||
@ -0,0 +1,58 @@
|
||||
---
|
||||
- name: "Plex | Restore any missing volumes from S3"
|
||||
ansible.builtin.include_role:
|
||||
name: chatton.docker_backup.docker_s3_volume_restore
|
||||
vars:
|
||||
docker_backup_s3_volume: "{{ item }}"
|
||||
with_items:
|
||||
- name: "{{ plex_portainer_stack_name }}_config"
|
||||
- name: "{{ plex_portainer_stack_name }}_tautulli_config"
|
||||
|
||||
- name: "Plex | Update Portainer."
|
||||
chatton.portainer.portainer_stack:
|
||||
username: '{{ portainer_user }}'
|
||||
password: '{{ portainer.password }}'
|
||||
base_url: '{{ portainer_base_url }}'
|
||||
stack_name: '{{ plex_portainer_stack_name }}'
|
||||
endpoint_id: '{{ portainer_endpoint }}'
|
||||
state: "{{ plex_state }}"
|
||||
definition:
|
||||
version: "3"
|
||||
services:
|
||||
plex:
|
||||
labels: "{{ backup_labels }}"
|
||||
image: "{{ plex_image }}:{{ plex_tag }}"
|
||||
container_name: "{{ plex_container_name }}"
|
||||
ports:
|
||||
- "{{ plex_expose_port }}:32400"
|
||||
network_mode: host
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- VERSION=docker
|
||||
volumes:
|
||||
- config:/config
|
||||
- "{{ directories.tv_dir }}:/tv"
|
||||
- "{{ directories.movies_dir }}:/movies"
|
||||
- "{{ directories.transcoding_dir }}:/transcoding"
|
||||
restart: "{{ restart_policy }}"
|
||||
devices:
|
||||
- /dev/dri:/dev/dri
|
||||
|
||||
tautulli:
|
||||
labels: "{{ backup_labels }}"
|
||||
image: lscr.io/linuxserver/tautulli:latest
|
||||
container_name: tautulli
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=Europe/London
|
||||
volumes:
|
||||
- tautulli_config:/config
|
||||
ports:
|
||||
- "{{ tautulli_expose_port }}:8181"
|
||||
restart: "{{ restart_policy }}"
|
||||
|
||||
volumes:
|
||||
config:
|
||||
tautulli_config:
|
||||
@ -1,24 +0,0 @@
|
||||
db:
|
||||
path: diun.db
|
||||
|
||||
watch:
|
||||
workers: 10
|
||||
schedule: "0 */6 * * *"
|
||||
jitter: 30s
|
||||
# always want notification if an update is available
|
||||
firstCheckNotif: true
|
||||
|
||||
notif:
|
||||
gotify:
|
||||
endpoint: https://gotify.cianhatton.ie
|
||||
token: {{ diun_gotify_token }}
|
||||
priority: 1
|
||||
timeout: 10s
|
||||
templateTitle: "{% raw %}{{ .Entry.Image }}{% endraw %} released"
|
||||
templateBody: |
|
||||
Docker tag {% raw %}{{ .Entry.Image }}{% endraw %} which you subscribed to through {% raw %}{{ .Entry.Provider }}{% endraw %} provider has been released.
|
||||
|
||||
providers:
|
||||
# check these separate to the docker system
|
||||
File:
|
||||
filename: /data/config.yml
|
||||
@ -1,27 +0,0 @@
|
||||
---
|
||||
version: "3.5"
|
||||
|
||||
services:
|
||||
diun:
|
||||
image: crazymax/diun:latest
|
||||
container_name: diun
|
||||
command: serve
|
||||
volumes:
|
||||
- data:/data
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /etc/config/diun/diun-config.yml:/data/config.yml
|
||||
environment:
|
||||
- TZ=Europe/Dublin
|
||||
- LOG_LEVEL=debug
|
||||
- LOG_JSON=false
|
||||
- DIUN_WATCH_WORKERS=20
|
||||
- DIUN_WATCH_SCHEDULE=0 */6 * * *
|
||||
- DIUN_WATCH_JITTER=30s
|
||||
- DIUN_PROVIDERS_DOCKER=true
|
||||
- DIUN_PROVIDERS_DOCKER_WATCHBYDEFAULT=true
|
||||
- CONFIG=/data/config.yml
|
||||
labels:
|
||||
- diun.enable=true
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
data:
|
||||
@ -1,44 +0,0 @@
|
||||
---
|
||||
version: "3"
|
||||
services:
|
||||
plex:
|
||||
labels:
|
||||
ie.cianhatton.backup.enabled: "true"
|
||||
ie.cianhatton.backup.schedule: "{{ backups.schedule_keys.nightly }}"
|
||||
image: "{{ template_vars.plex_image }}:{{ template_vars.plex_tag }}"
|
||||
container_name: plex
|
||||
ports:
|
||||
- 32400:32400
|
||||
network_mode: host
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- VERSION=docker
|
||||
volumes:
|
||||
- config:/config
|
||||
- {{ directories.tv_dir }}:/tv
|
||||
- {{ directories.movies_dir }}:/movies
|
||||
- {{ directories.transcoding_dir }}:/transcoding
|
||||
restart: unless-stopped
|
||||
devices:
|
||||
- /dev/dri:/dev/dri
|
||||
|
||||
tautulli:
|
||||
labels:
|
||||
ie.cianhatton.backup.enabled: "true"
|
||||
ie.cianhatton.backup.schedule: "{{ backups.schedule_keys.nightly }}"
|
||||
image: lscr.io/linuxserver/tautulli:latest
|
||||
container_name: tautulli
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=Europe/London
|
||||
volumes:
|
||||
- tautulli_config:/config
|
||||
ports:
|
||||
- 8182:8181
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
config:
|
||||
tautulli_config:
|
||||
Loading…
Reference in New Issue