master
pipistrello 2022-03-04 13:22:50 +03:00
parent 59c7e761b4
commit e683cb9e83
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
version: '3'
volumes:
ikev2-vpn-data:
services:
vpn:
image: hwdsl2/ipsec-vpn-server
restart: always
ports:
- "500:500/udp"
- "4500:4500/udp"
privileged: true
hostname: ipsec-vpn-server
container_name: ipsec-vpn-server
volumes:
- ikev2-vpn-data:/etc/ipsec.d
- /lib/modules:/lib/modules:ro
environment:
- VPN_IPSEC_PSK=${VPN_IPSEC_PSK}
- VPN_USER=${VPN_USER}
- VPN_PASSWORD=${VPN_PASSWORD}