docker-OpenVPN-server-stack/docker-compose.yml

22 lines
521 B
YAML
Raw Normal View History

2019-04-14 16:34:38 +00:00
version: "2.1"
services:
openvpn-server:
2019-12-31 19:46:17 +00:00
image: openvpn-server:$VERSION_OPENVPN_SERVER
build: "https://git.scimetis.net/yohan/docker-OpenVPN-server.git"
2019-04-14 16:34:38 +00:00
ports:
2019-12-31 19:46:17 +00:00
- 1194:1194/udp
2019-04-14 16:34:38 +00:00
volumes:
- ./conf/keys:/etc/openvpn/server/keys
- ./conf/ccd:/etc/openvpn/server/ccd
2019-12-31 19:46:17 +00:00
- ./server.conf:/etc/openvpn/server/server.conf
2019-04-14 16:34:38 +00:00
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun
2019-12-31 19:46:17 +00:00
restart: unless-stopped
2019-04-14 16:34:38 +00:00
#entrypoint: /bin/bash
#privileged: true
2019-12-31 19:46:17 +00:00
network_mode: "host"