Make roles more reusable
This commit is contained in:
30
roles/quadlets/qbittorrent/quadlets.yml
Normal file
30
roles/quadlets/qbittorrent/quadlets.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
- name: qbittorrent
|
||||
type: build
|
||||
image: localhost/qbittorrent:latest
|
||||
pull: missing
|
||||
format: oci
|
||||
force_rm: true
|
||||
container_file: |
|
||||
FROM {{ alpine_base_image }}
|
||||
LABEL maintainer="{{ maintainer }}"
|
||||
RUN apk add --no-cache \
|
||||
-X "{{ alpine_mirror }}/v{{ alpine_base_image.split(':')[-1] }}/main" \
|
||||
-X "{{ alpine_mirror }}/v{{ alpine_base_image.split(':')[-1] }}/community" \
|
||||
qbittorrent-nox \
|
||||
&& mkdir -p /app \
|
||||
&& ln -s /usr/bin/qbittorrent-nox /app/qbittorrent-nox
|
||||
WORKDIR /app
|
||||
|
||||
- name: qbittorrent
|
||||
type: container
|
||||
image: localhost/qbittorrent:latest
|
||||
volumes:
|
||||
- "{{ config_root }}/qbittorrent:/config:Z"
|
||||
- "{{ download_root }}/htpc:/downloads:z"
|
||||
- "{{ monitor_root }}/torrents:/torrents:Z"
|
||||
env:
|
||||
TZ: "{{ tz }}"
|
||||
command:
|
||||
- "qbittorrent-nox"
|
||||
- "--profile=/config"
|
||||
restart_policy: on-failure
|
||||
Reference in New Issue
Block a user