docker-compose.yml 396 B

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