-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
executable file
·46 lines (46 loc) · 1.1 KB
/
docker-compose.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
version: "2.4"
services:
vpncontainer:
image: ducmthai/nord:latest
build:
context: ./
container_name: vpncontainer
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
dns:
- 103.86.96.100
- 103.86.99.100
volumes:
- /etc/localtime:/etc/localtime:ro
- ./vpn.config:/vpn/vpn.config:ro
# Uncomment the following line if you use FILE__PASSWORD
#- ./vpnpasswd:/vpn/vpnpasswd:ro
env_file: .env
networks:
- vpncontainer
ports:
- ${PROXY_PORT}:${PROXY_PORT}
restart: always
sysctls:
- net.ipv6.conf.all.disable_ipv6=1
- net.ipv6.conf.default.disable_ipv6=1
- net.ipv6.conf.lo.disable_ipv6=1
- net.ipv4.tcp_keepalive_intvl=45
- net.ipv4.tcp_keepalive_probes=15
- net.ipv4.tcp_keepalive_time=300
logging:
driver: "json-file"
options:
max-size: "1M"
max-file: "1"
healthcheck:
test: /opt/utils/healthcheck.sh ${EXT_IP}
timeout: 10s
interval: 5m
retries: 10
networks:
vpncontainer:
name: vpncontainer
external: true