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: