aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docker-compose.yml
blob: 08a0841f8ba755f0f0c0368240cd99b18e5b7354 (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
services:
  web:
    depends_on: [api]
    image: egortensin/wg-api-web:1
    init: true
    ports:
      - '8090:80'
    restart: unless-stopped
    volumes:
      - './data:/data:ro'
  api:
    cap_add:
      - NET_ADMIN
    command: wg-api --device "${WG_IFACE:-wg0}" --listen 192.168.177.1:1234
    # The upstream image doesn't use tags (as of April '26), just hashes, so
    # we're pinning to latest.
    image: james/wg-api
    init: true
    network_mode: host
    restart: unless-stopped

networks:
  default:
    driver: bridge
    ipam:
      driver: default
      config:
        # The network is hardcoded; please don't change. If you run into
        # problems, let me know.
        - subnet: 192.168.177.0/24