118 lines
3.5 KiB
Django/Jinja
118 lines
3.5 KiB
Django/Jinja
services:
|
|
{% if localservices.wg_client.enabled %}
|
|
|
|
wireguard:
|
|
image: linuxserver/wireguard
|
|
cap_add:
|
|
- NET_ADMIN # Required for networking changes
|
|
- SYS_MODULE # Optional for WireGuard modules
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=Europe/Berlin
|
|
restart: unless-stopped
|
|
sysctls:
|
|
- net.ipv4.conf.all.src_valid_mark=1
|
|
volumes:
|
|
- ./config/wg0.conf:/config/wg_confs/wg0.conf
|
|
networks:
|
|
- proxy
|
|
labels:
|
|
traefik.enable: true
|
|
{% if localservices.aniworld.url | length > 0 %}
|
|
|
|
traefik.http.routers.aniworld.service: aniworld
|
|
traefik.http.routers.aniworld.rule: Host(`{{ localservices.aniworld.url }}`)
|
|
traefik.http.routers.aniworld.tls: "true"
|
|
traefik.http.routers.aniworld.tls.certresolver: hetzner
|
|
traefik.http.services.aniworld.loadbalancer.server.port: 8080
|
|
traefik.http.routers.aniworld.middlewares: local-only@file, traefik-auth@file
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{% if localservices.aniworld.url | length > 0 %}
|
|
|
|
aniworld:
|
|
image: ghcr.io/phoenixthrush/aniworld-downloader:latest
|
|
user: "0:0"
|
|
network_mode: "service:wireguard"
|
|
restart: unless-stopped
|
|
volumes:
|
|
- {{ localservices.aniworld.data_path }}:/app/Downloads
|
|
- ./config/aniworld:/home/aniworld/.aniworld
|
|
{% endif %}
|
|
|
|
{% if localservices.bittorrent.url | length > 0 %}
|
|
|
|
bittorrent:
|
|
image: linuxserver/qbittorrent:latest
|
|
networks:
|
|
- proxy
|
|
volumes:
|
|
- ./config/qbittorrent:/config
|
|
- {{ localservices.bittorrent.data_path }}:/downloads
|
|
ports:
|
|
- 6881:6881
|
|
- 6881:6881/udp
|
|
environment:
|
|
- PUID=0
|
|
- PGID=0
|
|
- TZ=Europe/Berlin
|
|
labels:
|
|
traefik.enable: true
|
|
traefik.http.routers.qb.rule: "Host(`{{ localservices.bittorrent.url }}`)"
|
|
traefik.http.routers.qb.tls: "true"
|
|
traefik.http.routers.qb.tls.certresolver: hetzner
|
|
traefik.http.services.qb.loadbalancer.server.port: "8080"
|
|
|
|
|
|
traefik.http.middlewares.qb-headers.headers.customRequestHeaders.X-Frame-Options: SAMEORIGIN
|
|
traefik.http.middlewares.qb-headers.headers.customRequestHeaders.Referer: ""
|
|
traefik.http.middlewares.qb-headers.headers.customRequestHeaders.Origin: ""
|
|
|
|
traefik.http.routers.qb.middlewares: local-only@file, traefik-auth@file, qb-headers
|
|
traefik.http.services.qb.loadbalancer.passhostheader: "false"
|
|
{% endif %}
|
|
|
|
{% if localservices.i2psnark.url | length > 0 %}
|
|
|
|
i2psnark:
|
|
build:
|
|
dockerfile: Dockerfile
|
|
context: i2psnark
|
|
volumes:
|
|
- ./config/i2psnark.config:/snark/i2psnark/i2psnark.config
|
|
- {{ localservices.i2psnark.data_path }}:/snark/downloads
|
|
networks:
|
|
- proxy
|
|
restart: "on-failure"
|
|
|
|
i2psnark-proxy:
|
|
image: nginx:alpine
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- i2psnark
|
|
volumes:
|
|
- ./config/i2psnark_nginx.conf:/etc/nginx/templates/default.conf.template:ro
|
|
networks:
|
|
- proxy
|
|
labels:
|
|
traefik.enable: true
|
|
|
|
traefik.http.routers.i2psnark.rule: "Host(`{{ localservices.i2psnark.url }}`) && (PathPrefix(`/i2psnark/`) || Path(`/`))"
|
|
traefik.http.routers.i2psnark.tls: "true"
|
|
traefik.http.routers.i2psnark.tls.certresolver: hetzner
|
|
|
|
traefik.http.routers.i2psnark.service: i2psnark
|
|
traefik.http.services.i2psnark.loadbalancer.server.port: "8080"
|
|
|
|
traefik.http.routers.i2psnark.middlewares: local-only@file, traefik-auth@file
|
|
|
|
{% endif %}
|
|
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
name: traefik_exposed
|