aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docker-compose.yml
blob: 717c23c642d5c21f961538bc844599853f85cb4c (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
version: '3.4'

x-default-settings:
  &default-settings
  logging:
    driver: journald
  restart: unless-stopped

services:
  web:
    << : *default-settings
    build: .
    depends_on: [api]
    image: egortensin/wg-api-web:latest
    ports:
      - '8080:80'
  api:
    << : *default-settings
    image: james/wg-api:latest
    cap_add:
      - NET_ADMIN
    network_mode: host
    command: wg-api --device vpn --listen 192.168.177.1:1234

networks:
  default:
    driver: bridge
    ipam:
      driver: default
      config:
        - subnet: 192.168.177.0/24