docker-compose.yml 435 B

123456789101112131415161718192021
  1. version: '2.1'
  2. volumes:
  3. vpn_config:
  4. services:
  5. gateway:
  6. build: .
  7. image: fphammerle/hackthebox-gateway
  8. container_name: hackthebox_gateway
  9. volumes:
  10. - vpn_config:/vpn-config:ro
  11. devices:
  12. - /dev/net/tun
  13. cap_add:
  14. - NET_ADMIN
  15. # https://github.com/dperson/openvpn-client/issues/75
  16. sysctls:
  17. - net.ipv6.conf.all.disable_ipv6=0
  18. # https://docs.docker.com/compose/compose-file/compose-file-v2/