Skip to content

Commit ba371d1

Browse files
authored
chore(docker): Add gluetun example (#69)
1 parent 528ab96 commit ba371d1

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

docker-compose.gluetun.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
services:
2+
gluetun:
3+
image: ghcr.io/qdm12/gluetun:latest
4+
container_name: gluetun
5+
restart: unless-stopped
6+
cap_add:
7+
- NET_ADMIN
8+
environment:
9+
# Include your gluetun config here
10+
devices:
11+
- "/dev/net/tun:/dev/net/tun"
12+
volumes:
13+
- "./data/gluetun:/gluetun"
14+
ports:
15+
- 8123:8123/tcp # Gluetun API
16+
17+
# qBittorrent ports, vuetorrent-backend will forward requests to it so no need to expose it
18+
# - "8080:8080"
19+
# NAT port forwarding required for them to work
20+
- "6881:6881"
21+
- "6881:6881/udp"
22+
23+
# vuetorrent-backend
24+
- "8081:8081"
25+
26+
qbit:
27+
image: lscr.io/linuxserver/qbittorrent:latest
28+
container_name: qbit
29+
restart: unless-stopped
30+
network_mode: service:gluetun
31+
environment:
32+
- WEBUI_PORT=8080
33+
- PUID=1000
34+
- PGID=1000
35+
volumes:
36+
- "./data/qbittorrent:/config"
37+
- "./data/downloads:/downloads"
38+
- "./data/torrents:/torrents"
39+
40+
vuetorrent-backend:
41+
# build: .
42+
image: ghcr.io/vuetorrent/vuetorrent-backend:latest
43+
container_name: vuetorrent-backend
44+
restart: unless-stopped
45+
network_mode: service:gluetun
46+
environment:
47+
# Backend port can't match qbit one because of the network_mode
48+
# You'll have to remove "Host header validation" in qbit settings > WebUI
49+
- PORT=8081
50+
51+
# Here we can use localhost because both qbit and backend container are on the same docker host (network_mode)
52+
- QBIT_BASE=http://localhost:8080
53+
# Use "dev" for nightly releases
54+
- RELEASE_TYPE=stable
55+
# Optional, refer to the node-schedule package for compatible syntax
56+
- UPDATE_VT_CRON=0 * * * *
57+
# Only enable if using self-signed certificates
58+
# - USE_INSECURE_SSL=true
59+
volumes:
60+
- "./data/config:/config"
File renamed without changes.

0 commit comments

Comments
 (0)