Initial docker-compose.yml
This commit is contained in:
commit
98dd1aba31
47
docker-compose.yml
Normal file
47
docker-compose.yml
Normal file
@ -0,0 +1,47 @@
|
||||
volumes:
|
||||
gluetun:
|
||||
qbittorrent:
|
||||
|
||||
services:
|
||||
gluetun:
|
||||
image: "qmcgaw/gluetun:${GLUETUN_VERSION}"
|
||||
container_name: gluetun
|
||||
ports:
|
||||
- "${QBIT_EXPOSE:-127.0.0.1:9080}:8080"
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
devices:
|
||||
- /dev/net/tun:/dev/net/tun
|
||||
volumes:
|
||||
- gluetun:/gluetun
|
||||
- ./gluetun:/tmp/gluetun
|
||||
environment:
|
||||
- VPN_SERVICE_PROVIDER=private internet access
|
||||
- VPN_TYPE=openvpn
|
||||
- PRIVATE_INTERNET_ACCESS_VPN_PORT_FORWARDING=${VPN_PORTFORWARD:-off}
|
||||
- OPENVPN_USER=${VPN_USER}
|
||||
- OPENVPN_PASSWORD=${VPN_PASSWORD}
|
||||
- TZ=${TZ:-America/New_York}
|
||||
labels:
|
||||
- "traefik.http.routers.${ROUTER:-qbit}.rule=Host(`${HOSTNAME:-qbit.local.krislamo.org}`)"
|
||||
- "traefik.http.routers.${ROUTER:-qbit}.entrypoints=web"
|
||||
- "traefik.http.services.${ROUTER:-qbit}.loadbalancer.server.port=8080"
|
||||
- "traefik.docker.network=traefik"
|
||||
- "traefik.enable=true"
|
||||
|
||||
qbittorrent:
|
||||
image: linuxserver/qbittorrent:${QBIT_VERSION}
|
||||
container_name: qbittorrent
|
||||
network_mode: "service:gluetun"
|
||||
mem_limit: ${MEM_LIMIT:-2g}
|
||||
cpus: ${CPUS:-2}
|
||||
depends_on:
|
||||
- gluetun
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=${TZ:-America/New_York}
|
||||
- WEBUI_PORT=8080
|
||||
volumes:
|
||||
- qbittorrent:/config
|
||||
- ${DOWNLOADS}:/data
|
Loading…
x
Reference in New Issue
Block a user