any.software.nefarious-podman: add role
This commit is contained in:
parent
13d834a316
commit
00342d5027
10 changed files with 203 additions and 0 deletions
61
roles/any.software.nefarious-podman/templates/compose.yml.j2
Normal file
61
roles/any.software.nefarious-podman/templates/compose.yml.j2
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
# vim: set ft=yaml
|
||||
name: 'nefarious'
|
||||
services:
|
||||
app:
|
||||
image: 'lardbit/nefarious:latest'
|
||||
restart: 'always'
|
||||
|
||||
environment:
|
||||
- 'DATABASE_URL=sqlite:////config/db.sqlite3'
|
||||
- 'REDIS_HOST=redis'
|
||||
- 'HOST_DOWNLOAD_PATH=/mnt/data1/media'
|
||||
- 'NEFARIOUS_USER={{ nefarious_admin_user }}'
|
||||
- 'NEFARIOUS_PASS={{ nefarious_admin_pass }}'
|
||||
- 'CONFIG_PATH=/config'
|
||||
ports:
|
||||
- '8006:80'
|
||||
volumes:
|
||||
- '/mnt/data1/nefarious/nefarious:/config'
|
||||
|
||||
celery:
|
||||
image: 'lardbit/nefarious:latest'
|
||||
restart: 'always'
|
||||
entrypoint: '/app/entrypoint-celery.sh'
|
||||
|
||||
environment:
|
||||
- 'DATABASE_URL=sqlite:////config/db.sqlite3'
|
||||
- 'REDIS_HOST=redis'
|
||||
- 'CONFIG_PATH=/config'
|
||||
- 'NUM_CELERY_WORKERS=1'
|
||||
volumes:
|
||||
- '/mnt/data1/nefarious/nefarious:/config'
|
||||
|
||||
redis:
|
||||
image: 'redis:6-alpine'
|
||||
restart: always
|
||||
|
||||
jackett:
|
||||
image: 'linuxserver/jackett:latest'
|
||||
restart: always
|
||||
|
||||
ports:
|
||||
- '8007:9117'
|
||||
volumes:
|
||||
- '/mnt/data1/nefarious/jackett:/config'
|
||||
|
||||
transmission:
|
||||
image: 'linuxserver/transmission:4.0.5'
|
||||
restart: 'always'
|
||||
|
||||
environment:
|
||||
- 'PUID=1000'
|
||||
- 'PGID=1000'
|
||||
- 'TZ=Europe/Brussels'
|
||||
- 'USER='
|
||||
- 'PASS='
|
||||
ports:
|
||||
- '8008:9091'
|
||||
- '51413:51413'
|
||||
volumes:
|
||||
- '/etc/nefarious/transmission-settings.json:/config/settings.json:ro'
|
||||
- '/mnt/data1/media:/downloads'
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
# vim: ft=systemd
|
||||
[Unit]
|
||||
Requires=nefarious-celery.service nefarious-redis.service nefarious-jackett.service nefarious-transmission.service
|
||||
After=nefarious-redis.service
|
||||
|
||||
[Container]
|
||||
Image=docker.io/lardbit/nefarious:latest
|
||||
Pod=nefarious.pod
|
||||
|
||||
Environment=DATABASE_URL=sqlite:////config/db.sqlite3 REDIS_HOST=localhost HOST_DOWNLOAD_PATH={{ host_download_dir }} "NEFARIOUS_USER={{ nefarious_admin_user }}" "NEFARIOUS_PASS={{ nefarious_admin_pass }}" CONFIG_PATH=/config HOST_DOWNLOAD_UID=0
|
||||
Volume={{ nefarious_config_dir }}:/config
|
||||
|
||||
AutoUpdate=registry
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
# vim: ft=systemd
|
||||
[Container]
|
||||
Image=docker.io/lardbit/nefarious:latest
|
||||
Pod=nefarious.pod
|
||||
Entrypoint=/app/entrypoint-celery.sh
|
||||
|
||||
Environment=DATABASE_URL=sqlite:////config/db.sqlite3 REDIS_HOST=localhost HOST_DOWNLOAD_PATH={{ host_download_dir }} "NEFARIOUS_USER={{ nefarious_admin_user }}" "NEFARIOUS_PASS={{ nefarious_admin_pass }}" CONFIG_PATH=/config NUM_CELERY_WORKERS=1 HOST_DOWNLOAD_UID=0
|
||||
Volume={{ nefarious_config_dir }}:/config
|
||||
|
||||
AutoUpdate=registry
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
# vim: ft=systemd
|
||||
[Container]
|
||||
Image=docker.io/linuxserver/jackett:latest
|
||||
Pod=nefarious.pod
|
||||
Volume={{ jackett_data_dir }}:/config
|
||||
|
||||
AutoUpdate=registry
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
# vim: ft=systemd
|
||||
[Container]
|
||||
Image=docker.io/linuxserver/transmission:4.0.5
|
||||
Pod=nefarious.pod
|
||||
|
||||
Environment=PUID=0 PGID=0 TZ=Europe/Brussels USER= PASS=
|
||||
Volume={{ transmission_settings_path }}:/config/settings.json:ro
|
||||
Volume={{ host_download_dir }}:/downloads
|
||||
|
||||
[Service]
|
||||
Restart=always
|
||||
Loading…
Add table
Add a link
Reference in a new issue