| version: '3.8' | |
| services: | |
| ikev2_server: | |
| build: . | |
| container_name: pure_python_ikev2_server | |
| # The server needs to listen on UDP ports 500 and 4500 | |
| ports: | |
| - "500:500/udp" | |
| - "4500:4500/udp" | |
| # To handle IPsec/VPN traffic, the container often needs to run in | |
| # privileged mode and/or with NET_ADMIN capability. | |
| # This is a common requirement for VPN servers in containers. | |
| cap_add: | |
| - NET_ADMIN | |
| restart: always | |