diff --git a/.gitignore b/.gitignore index b25c15b8..78dec8df 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ *~ +.env +.idea diff --git a/config/.gitignore b/config/.gitignore new file mode 100644 index 00000000..d6b7ef32 --- /dev/null +++ b/config/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..3f5119cc --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,15 @@ +version: "3" + +services: + openvpn: + image: ${IMAGE_NAME:-kylemanna/openvpn}:${IMAGE_TAG:-latest} + build: . + volumes: + - type: bind + source: ./config + target: /etc/openvpn + ports: + - "1194:1194/udp" + cap_add: + - NET_ADMIN + restart: always