docker-compose.yml 505 B

1234567891011121314151617181920212223
  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. #environment:
  10. # OPENVPN_CONFIG_PATH: /vpn-config/config.ovpn
  11. volumes:
  12. - vpn_config:/vpn-config:ro
  13. devices:
  14. - /dev/net/tun
  15. cap_add:
  16. - NET_ADMIN
  17. # https://github.com/dperson/openvpn-client/issues/75
  18. sysctls:
  19. - net.ipv6.conf.all.disable_ipv6=0
  20. # https://docs.docker.com/compose/compose-file/compose-file-v2/