You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

docker-compose.yml 709B

123456789101112131415161718192021222324252627
  1. version: '2'
  2. services:
  3. openvpn:
  4. build: ./openvpn
  5. container_name: vpn-c2s-openvpn
  6. # restart: unless-stopped
  7. cap_add:
  8. - NET_ADMIN
  9. networks:
  10. vpn-c2s.internal.docker:
  11. aliases:
  12. - openvpn.vpn-c2s.internal.docker
  13. ipv4_address: 10.116.0.10
  14. volumes:
  15. - ./data/openvpn/client-config-dir:/etc/openvpn/client-config-dir
  16. - ./data/openvpn/credentials:/etc/openvpn/credentials
  17. ports:
  18. - "0.0.0.0:35090:4242"
  19. env_file:
  20. - env
  21. networks:
  22. vpn-c2s.internal.docker:
  23. ipam:
  24. config:
  25. - subnet: 10.116.0.0/24