added docker-compose.yml

This commit is contained in:
root
2017-04-20 00:45:11 +00:00
parent 430dc3239c
commit 3be678e498
3 changed files with 18 additions and 0 deletions
+1
View File
@@ -2,4 +2,5 @@
LICENSE.md
README.md
README-zh.md
vpn.env
vpn.env.example
+1
View File
@@ -0,0 +1 @@
vpn.env
+16
View File
@@ -0,0 +1,16 @@
version: '2'
services:
vpn:
image: hwdsl2/ipsec-vpn-server
restart: always
env_file:
- ./vpn.env
ports:
- "500:500/udp"
- "4500:4500/udp"
privileged: true
hostname: ipsec-vpn-server
container_name: ipsec-vpn-server
volumes:
- /lib/modules:/lib/modules:ro