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:
|
2020-11-02 11:30:36 -05:00
|
|
|
- 7777:1194
|
2020-10-15 12:12:31 -04:00
|
|
|
volumes:
|
2020-10-29 06:50:19 -04:00
|
|
|
- ./easyrsa:/etc/openvpn/easyrsa
|
|
|
|
- ./ccd:/etc/openvpn/ccd
|
2020-10-15 12:12:31 -04:00
|
|
|
openvpn-admin:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
image: openvpn-admin:local
|
2020-10-29 06:50:19 -04:00
|
|
|
command: /app/openvpn-admin --debug --ovpn.network="172.16.100.0/22" --mgmt.host="openvpn"
|
2020-10-15 12:12:31 -04:00
|
|
|
ports:
|
|
|
|
- 8080:8080
|
|
|
|
volumes:
|
2020-10-29 06:50:19 -04:00
|
|
|
- ./easyrsa:/mnt/easyrsa
|
|
|
|
- ./ccd:/mnt/ccd
|