blob: 88acc36e4e07ea05d9bc36c8add17a6c22d93361 (
plain) (
blame)
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'
services:
wg:
image: lscr.io/linuxserver/wireguard:latest
restart: unless-stopped
environment:
- SERVERURL=wireguard.domain.com
- SERVERPORT=51820
- PEERS=1
- INTERNAL_SUBNET=10.13.13.0
- LOG_CONFS=true
networks:
- wg_web_api_network
ports:
- 51820:51820/udp
- '192.168.177.1:1234:1234'
#volumes:
# - ./config:/config
cap_add:
- NET_ADMIN
- SYS_MODULE
web:
image: egortensin/wg-api-web:1
depends_on: [api]
restart: unless-stopped
ports:
- '8090:80'
#volumes:
# - './data:/data:ro'
api:
image: james/wg-api:latest
command: wg-api --device wg0 --listen 0.0.0.0:1234
depends_on: [wg]
restart: unless-stopped
network_mode: service:wg
cap_add:
- NET_ADMIN
networks:
wg_web_api_network:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.177.0/24
|