-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
49 lines (46 loc) · 983 Bytes
/
docker-compose.yaml
File metadata and controls
49 lines (46 loc) · 983 Bytes
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
version: "3.7"
services:
wireguard:
stdin_open: true
tty: true
image: lscr.io/linuxserver/wireguard
container_name: ${WG_CONT_NAME}
build:
context: .
dockerfile: Dockerfile.dock
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Moscow
- SERVERURL=${WG_SERVER_URL}
- SERVERPORT=${WG_PORT}
- PEERS=0
- PEERDNS=auto
- INTERNAL_SUBNET=${WG_SUBNET}
- ALLOWEDIPS=0.0.0.0/0
volumes:
- /lib/modules:/lib/modules
- scripts:/scripts
- config:/config
ports:
- ${WG_PORT}:${WG_PORT}/udp
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: always
healthcheck:
test: ping -c 1 www.google.com || exit 1
interval: 30s
timeout: 10s
retries: 3
networks:
wg_net:
ipv4_address: 172.16.50.3
volumes:
config:
scripts:
networks:
wg_net:
external: true