From 5a87e5cd03b14ab6c4354ac3116f5e7fc28c3778 Mon Sep 17 00:00:00 2001 From: Julien Escario Date: Wed, 24 Feb 2021 15:57:29 +0100 Subject: [PATCH] Add initial wg-gen-web docker-compose config --- docker/wg-gen-web/wg-gen-web.yaml | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 docker/wg-gen-web/wg-gen-web.yaml diff --git a/docker/wg-gen-web/wg-gen-web.yaml b/docker/wg-gen-web/wg-gen-web.yaml new file mode 100644 index 0000000..1eefe8f --- /dev/null +++ b/docker/wg-gen-web/wg-gen-web.yaml @@ -0,0 +1,44 @@ +version: '3.6' +services: + wg-gen-web-lec: + image: vx3r/wg-gen-web:latest + container_name: wg-gen-web-lec + restart: unless-stopped + expose: + - "8080" + ports: + - "8080:8080" + environment: + - WG_CONF_DIR=/data + - WG_INTERFACE_NAME=wg0.conf + - WG_STATS_API=http://172.20.1.1:8182 + - WG_STATS_API_USER= + - WG_STATS_API_PASS= + - SMTP_HOST= + - SMTP_PORT= + - SMTP_USERNAME= + - SMTP_PASSWORD= + - SMTP_FROM= + volumes: + - /etc/wireguard:/data + networks: + default: + aliases: + - wg-web + + wg-json-api: + image: james/wg-api:latest + container_name: wg-json-api + restart: unless-stopped + cap_add: + - NET_ADMIN + network_mode: "host" + command: wg-api --device wg0 --listen 172.20.1.1:8182 + +networks: + default: + driver: bridge + ipam: + driver: default + config: + - subnet: 172.20.1.0/24