forked from linuxserver/docker-wireguard
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (46 loc) · 1.1 KB
/
docker-compose.yml
File metadata and controls
46 lines (46 loc) · 1.1 KB
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: "3.5"
services:
wireguard:
build: .
image: "wireguard.wireguard.dnp.dappnode.eth:0.1.1"
container_name: DAppNodeCore-wireguard.wireguard.dnp.dappnode.eth
restart: unless-stopped
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PEERS=dappnode_admin
- SERVERURL=
- WIREGUARD_RELEASE=
- PUID=1000
- PGID=1000
- SERVERPORT=51820
- "PEERDNS=172.33.1.2,10.20.0.2"
- INTERNAL_SUBNET=10.24.0.0
- "ALLOWEDIPS=172.33.0.0/16,10.20.0.0/24"
volumes:
- "wg-config:/config"
- "/lib/modules:/lib/modules"
ports:
- "51820:51820/udp"
networks:
dncore_network:
aliases:
- wireguard.wireguard.dappnode
api:
build: ./api
image: "api.wireguard.dnp.dappnode.eth:0.1.1"
container_name: DAppNodeCore-api.wireguard.dnp.dappnode.eth
restart: unless-stopped
volumes:
- "wg-config:/config"
networks:
dncore_network:
aliases:
- api.wireguard.dappnode
volumes:
wg-config: {}
networks:
dncore_network:
name: dncore_network
external: true