mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-30 11:56:18 -05:00
21 lines
970 B
Text
21 lines
970 B
Text
|
|
# The VPN and the torrent client (qBittorrent) that uses it, in one container. The container's network namespace is
|
||
|
|
# the fail-closed network: the tunnel's kill switch (controller/vpn/tunnel.py) lets nothing out except through the VPN.
|
||
|
|
# qBittorrent's WebUI (8091) is served to the LAN by Caddy.
|
||
|
|
FROM debian:trixie-slim
|
||
|
|
|
||
|
|
RUN apt-get update \
|
||
|
|
&& apt-get install -y --no-install-recommends iproute2 nftables openvpn wireguard-tools python3 python3-yaml \
|
||
|
|
ca-certificates qbittorrent-nox \
|
||
|
|
&& rm -rf /var/lib/apt/lists/*
|
||
|
|
|
||
|
|
COPY controller/vpn/tunnel.py /app/tunnel.py
|
||
|
|
COPY modules/torrents/qbittorrent_prepare.py /app/qbittorrent_prepare.py
|
||
|
|
COPY docker/vpn/entrypoint.sh /app/entrypoint.sh
|
||
|
|
|
||
|
|
# qBittorrent's own state, outside the library (a named volume, which takes this owner when it is first used). A new
|
||
|
|
# one re-adds every torrent from config/torrents/.
|
||
|
|
RUN mkdir /profile && chown 1000:1000 /profile
|
||
|
|
|
||
|
|
ENV PYTHONUNBUFFERED=1
|
||
|
|
CMD ["/app/entrypoint.sh"]
|