-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-vpn.yml
73 lines (68 loc) · 1.84 KB
/
docker-compose-vpn.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '3'
services:
gluetun:
image: qmcgaw/gluetun
# container_name: gluetun
# line above must be uncommented to allow external containers to connect.
# See https://github.com/qdm12/gluetun-wiki/blob/main/setup/connect-a-container-to-gluetun.md#external-container-to-gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
ports:
- 8888:8888/tcp # HTTP proxy
- 8388:8388/tcp # Shadowsocks
- 8388:8388/udp # Shadowsocks
# - 5000:5000
# - 5432:5432
volumes:
- ./gluetun:/gluetun
environment:
- VPN_SERVICE_PROVIDER=
- VPN_TYPE=
- WIREGUARD_PRIVATE_KEY=
- WIREGUARD_PRESHARED_KEY=
- WIREGUARD_ADDRESSES=
- SERVER_COUNTRIES=
0din:
container_name: 0din
image: artemisarrow/0din-docker:testing
volumes:
- /share:/the/directory/to/be/shared
environment:
- NODE_ID=${NODE_ID}
- NODE_PORT=${NODE_PORT}
- KNOWN_NODES=${KNOWN_NODES}
- DB_PASSWORD=${DB_PASSWORD}
- ENABLE_SSL=${ENABLE_SSL}
- ENABLE_HTTPS_REDIRECT=${ENABLE_HTTPS_REDIRECT}
- DB_USER=${DB_USER}
- DB_NAME=${DB_NAME}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
# ports:
# - 5000:5000
depends_on:
0din-postgres:
condition: service_healthy
network_mode: "service:gluetun"
0din-postgres:
container_name: 0din-postgres
image: postgres:14-alpine
restart: always
environment:
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_USER=${DB_USER}
- POSTGRES_DB=${DB_NAME}
# ports:
# - 5432:5432
volumes:
- 0din-postgres-db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER}"]
interval: 10s
timeout: 5s
retries: 5
network_mode: "service:gluetun"
volumes:
0din-postgres-db: