aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/linuxserver/docker-compose.yml
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-03-12 17:29:51 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-03-12 17:31:03 +0100
commit1fc10fd6fcbadb8c6c8f05895ae0ede1e57b79f8 (patch)
tree5b79205f6d1b01dd76740d4177c93774b7fd064d /test/linuxserver/docker-compose.yml
parenttest: add check_web.sh (diff)
downloadwg-api-web-1fc10fd6fcbadb8c6c8f05895ae0ede1e57b79f8.tar.gz
wg-api-web-1fc10fd6fcbadb8c6c8f05895ae0ede1e57b79f8.zip
test: add LinuxServer tests
Diffstat (limited to 'test/linuxserver/docker-compose.yml')
-rw-r--r--test/linuxserver/docker-compose.yml46
1 files changed, 46 insertions, 0 deletions
diff --git a/test/linuxserver/docker-compose.yml b/test/linuxserver/docker-compose.yml
new file mode 100644
index 0000000..88acc36
--- /dev/null
+++ b/test/linuxserver/docker-compose.yml
@@ -0,0 +1,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