1
0
Fork 0
mirror of synced 2024-11-17 22:45:34 -05:00
ovpn-admin/docker-compose.yaml

27 lines
798 B
YAML
Raw Normal View History

2020-10-15 12:12:31 -04:00
version: '3'
services:
openvpn:
2020-10-29 06:50:19 -04:00
build:
context: .
dockerfile: Dockerfile.openvpn
2020-10-15 12:12:31 -04:00
image: openvpn:local
command: /etc/openvpn/setup/configure.sh
2020-10-29 06:50:19 -04:00
cap_add:
- NET_ADMIN
2020-10-15 12:12:31 -04:00
ports:
- 7777:1194 # for openvpn
2021-03-17 05:05:37 -04:00
- 8080:8080 # for ovpn-admin because of network_mode
2020-10-15 12:12:31 -04:00
volumes:
- ./easyrsa_master:/etc/openvpn/easyrsa
- ./ccd_master:/etc/openvpn/ccd
2021-03-17 05:05:37 -04:00
ovpn-admin:
2020-10-15 12:12:31 -04:00
build:
context: .
2021-03-17 05:05:37 -04:00
image: ovpn-admin:local
command: /app/ovpn-admin --debug --ovpn.network="172.16.100.0/22" --master.sync-token="TOKEN" --easyrsa.path="/mnt/easyrsa" --easyrsa.index-path="/mnt/easyrsa/pki/index.txt" --ovpn.server="127.0.0.1:7777:tcp"
network_mode: service:openvpn
2020-10-15 12:12:31 -04:00
volumes:
- ./easyrsa_master:/mnt/easyrsa
- ./ccd_master:/mnt/ccd