docker-vpn/docker-compose.yml

15 lines
333 B
YAML

version: '2.0'
services:
openvpn:
restart: never
build:
context: ./
dockerfile: Dockerfile
volumes:
- ./config.ovpn:/opt/config.ovpn
- ./ovpn_config:/opt/ovpn_config
- ./auth.txt:/opt/auth.txt
- /etc/passwd:/etc/passwd
cap_add:
- NET_ADMIN
env_file: ./configuration.env