This commit is contained in:
2026-05-07 12:30:51 -04:00
parent 2ed785e214
commit 59d8db92ca
32 changed files with 1796 additions and 290 deletions
+30
View File
@@ -0,0 +1,30 @@
version: "3.8"
services:
app:
build: .
image: network-tool:latest
ports:
- "5050:8000"
env_file:
- .env
volumes:
- ./ansible_workspace:/app/ansible_workspace
- ./openvpn/configs:/vpn/configs
- ./openvpn/runtime:/vpn/runtime
#- openvpn-state:/vpn/runtime
- ./keys/5G-SSH-Key.pem:/app/.ssh/5G-SSH-Key.pem:ro
- ./keys/5G-SSH-Key.pem:/root/.ssh/5G-SSH-Key.pem:ro
devices:
- /dev/net/tun:/dev/net/tun
cap_add:
- NET_ADMIN
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:8000/api/ping"]
interval: 30s
timeout: 5s
retries: 3
volumes:
openvpn-state: