Initial Commit
This commit is contained in:
31
tasks/sonarr.yml
Normal file
31
tasks/sonarr.yml
Normal file
@ -0,0 +1,31 @@
|
||||
---
|
||||
- name: Create directories
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
with_items:
|
||||
- "/mnt/nfs/docker/sonarr"
|
||||
- "/mnt/nfs/docker/sonarr/config"
|
||||
|
||||
- name: Create the sonarr container
|
||||
docker_container:
|
||||
name: sonarr
|
||||
image: linuxserver/sonarr:4.0.9
|
||||
restart_policy: unless-stopped
|
||||
recreate: true
|
||||
networks:
|
||||
- name: proxy
|
||||
env:
|
||||
PUID: "1000"
|
||||
PGID: "1000"
|
||||
TZ: "Australia/Brisbane"
|
||||
DOCKER_MODS: "ghcr.io/themepark-dev/theme.park:sonarr"
|
||||
volumes:
|
||||
- /mnt/nfs/docker/sonarr/config/:/config
|
||||
- /mnt/nfs/data:/data
|
||||
labels:
|
||||
traefik.enable: "true"
|
||||
traefik.http.routers.sonarr.rule: "Host(`sonarr.comprofix.xyz`)"
|
||||
traefik.http.routers.sonarr.entrypoints: "https"
|
||||
traefik.http.routers.sonarr.tls: "true"
|
||||
traefik.http.services.sonarr.loadbalancer.server.port: "8989"
|
Reference in New Issue
Block a user