From 56f17ed4b68fc579dec9d2459999f5c4a521b427 Mon Sep 17 00:00:00 2001 From: Dmitry Ivanov Date: Sat, 6 Jan 2024 11:42:56 +0200 Subject: [PATCH] [hidiv/feature-docker-compose] Added docker-compose.yml file --- .gitignore | 2 ++ config/.gitignore | 2 ++ docker-compose.yml | 15 +++++++++++++++ 3 files changed, 19 insertions(+) create mode 100644 config/.gitignore create mode 100644 docker-compose.yml 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