30 lines
876 B
YAML
30 lines
876 B
YAML
- 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 |