-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
45 lines (43 loc) · 1.36 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#
# Docker Compose template using gluetun as a VPN in the same container stack.
# In this example, `gallery-dl.conf` is located inside the `config` folder in the same directory as the Compose file.
# The environment variables for your VPN configuration can go in this file or a separate `.env` file in the same directory,
# or specify the location with `docker compose --env-file <location> up -d`.
#
services:
gallery-dl:
image: qx6ghqkz/gallery-dl-server:latest
container_name: gallery-dl
depends_on:
- gluetun
network_mode: service:gluetun
# ports:
# - 9080:9080
environment:
- UID=1000
- GID=1000
volumes:
- ./config:/config
- ~/Downloads/gallery-dl:/gallery-dl
restart: on-failure
gluetun:
image: qmcgaw/gluetun:latest
container_name: vpn
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
ports:
# gallery-dl
- 9080:9080
volumes:
- ~/Documents/gluetun:/gluetun
environment:
# Configuration for Wireguard. See https://github.com/qdm12/gluetun#setup for more details.
- VPN_SERVICE_PROVIDER=${VPN_SERVICE_PROVIDER}
- VPN_TYPE=${VPN_TYPE}
- WIREGUARD_PRIVATE_KEY=${WIREGUARD_PRIVATE_KEY}
- WIREGUARD_ADDRESSES=${WIREGUARD_ADDRESSES}
- SERVER_COUNTRIES=${SERVER_COUNTRIES}
- TZ=${TZ}
restart: unless-stopped