docker-OpenVPN-server-stack/docker-compose.yml
2019-12-31 20:46:17 +01:00

22 lines
521 B
YAML

version: "2.1"
services:
openvpn-server:
image: openvpn-server:$VERSION_OPENVPN_SERVER
build: "https://git.scimetis.net/yohan/docker-OpenVPN-server.git"
ports:
- 1194:1194/udp
volumes:
- ./conf/keys:/etc/openvpn/server/keys
- ./conf/ccd:/etc/openvpn/server/ccd
- ./server.conf:/etc/openvpn/server/server.conf
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
restart: unless-stopped
#entrypoint: /bin/bash
#privileged: true
network_mode: "host"