version: '2.1' volumes: vpn_config: services: gateway: build: . image: fphammerle/hackthebox-gateway container_name: hackthebox_gateway #environment: # OPENVPN_CONFIG_PATH: /vpn-config/config.ovpn volumes: - vpn_config:/vpn-config:ro devices: - /dev/net/tun cap_add: - NET_ADMIN # https://github.com/dperson/openvpn-client/issues/75 sysctls: - net.ipv6.conf.all.disable_ipv6=0 # https://docs.docker.com/compose/compose-file/compose-file-v2/