2020-10-15 12:12:31 -04:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
openvpn:
|
2020-10-29 06:50:19 -04:00
|
|
|
build:
|
|
|
|
context: .
|
2022-12-30 09:25:21 -05:00
|
|
|
image: ovpn-admin:local
|
2020-10-15 12:12:31 -04:00
|
|
|
command: /etc/openvpn/setup/configure.sh
|
2021-10-21 06:01:03 -04:00
|
|
|
environment:
|
2022-12-30 09:25:21 -05:00
|
|
|
OVPN_SERVER_NET: ${OVPN_SERVER_NET}
|
|
|
|
OVPN_SERVER_MASK: ${OVPN_SERVER_MASK}
|
|
|
|
OVPN_PASSWD_AUTH: ${OVPN_PASSWD_AUTH}
|
2020-10-29 06:50:19 -04:00
|
|
|
cap_add:
|
|
|
|
- NET_ADMIN
|
2020-10-15 12:12:31 -04:00
|
|
|
ports:
|
2020-11-17 12:48:26 -05:00
|
|
|
- 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:
|
2022-12-30 09:25:21 -05:00
|
|
|
- /tmp/easyrsa_master:/etc/openvpn/easyrsa
|
|
|
|
- /tmp/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
|
2021-10-21 06:01:03 -04:00
|
|
|
command: /app/ovpn-admin
|
|
|
|
environment:
|
2022-12-30 09:25:21 -05:00
|
|
|
OVPN_NETWORK: ${OVPN_NETWORK}
|
|
|
|
OVPN_CCD: ${OVPN_CCD}
|
|
|
|
OVPN_CCD_PATH: ${OVPN_CCD_PATH
|
|
|
|
EASYRSA_PATH: ${EASYRSA_PATH}
|
|
|
|
OVPN_SERVER: ${OVPN_SERVER}
|
|
|
|
OVPN_INDEX_PATH: ${OVPN_INDEX_PATH}
|
|
|
|
OVPN_AUTH: ${OVPN_AUTH}
|
|
|
|
OVPN_AUTH_TFA: ${OVPN_AUTH_TFA}
|
|
|
|
OVPN_AUTH_DB_PATH: ${OVPN_AUTH_DB_PATH}
|
|
|
|
LOG_LEVEL: ${LOG_LEVEL}
|
2020-11-17 12:48:26 -05:00
|
|
|
network_mode: service:openvpn
|
2020-10-15 12:12:31 -04:00
|
|
|
volumes:
|
2022-12-30 09:25:21 -05:00
|
|
|
- /tmp/easyrsa_master:/mnt/easyrsa
|
|
|
|
- /tmp/ccd_master:/mnt/ccd
|