aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-11-28 00:07:45 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2022-11-28 00:07:45 +0100
commitd9a71a04b1478e8ab1ec871b25c8bf043f3a85f7 (patch)
treecdff00c4240c4fbd70fd41a95de083cad87ae171 /docker-compose.yml
parentadd LICENSE.txt (diff)
downloadwg-api-web-d9a71a04b1478e8ab1ec871b25c8bf043f3a85f7.tar.gz
wg-api-web-d9a71a04b1478e8ab1ec871b25c8bf043f3a85f7.zip
add a minimal working version
Diffstat (limited to '')
-rw-r--r--docker-compose.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..717c23c
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,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