Adding OpenVPN with Rancher local backend authentication (#228)
This commit is contained in:
committed by
Bill Maxwell
parent
4c861be08c
commit
4edb7e30fc
@@ -0,0 +1,33 @@
|
||||
openvpn-rancherlocal-data:
|
||||
labels:
|
||||
io.rancher.container.start_once: 'true'
|
||||
entrypoint:
|
||||
- /bin/true
|
||||
image: busybox
|
||||
volumes:
|
||||
- /etc/openvpn/
|
||||
|
||||
openvpn-rancherlocal-server:
|
||||
ports:
|
||||
- 1194:1194/tcp
|
||||
environment:
|
||||
AUTH_METHOD: rancherlocal
|
||||
AUTH_RANCHERLOCAL_URL: ${AUTH_RANCHERLOCAL_URL}/v1/token
|
||||
CERT_COUNTRY: ${CERT_COUNTRY}
|
||||
CERT_PROVINCE: ${CERT_PROVINCE}
|
||||
CERT_CITY: ${CERT_CITY}
|
||||
CERT_ORG: ${CERT_ORG}
|
||||
CERT_EMAIL: ${CERT_EMAIL}
|
||||
CERT_OU: ${CERT_OU}
|
||||
REMOTE_IP: ${REMOTE_IP}
|
||||
REMOTE_PORT: ${REMOTE_PORT}
|
||||
VPNPOOL_NETWORK: ${VPNPOOL_NETWORK}
|
||||
VPNPOOL_CIDR: ${VPNPOOL_CIDR}
|
||||
OPENVPN_EXTRACONF: ${OPENVPN_EXTRACONF}
|
||||
labels:
|
||||
io.rancher.sidekicks: openvpn-rancherlocal-data
|
||||
io.rancher.container.pull_image: always
|
||||
image: mdns/rancher-openvpn:1.1
|
||||
privileged: true
|
||||
volumes_from:
|
||||
- openvpn-rancherlocal-data
|
||||
Reference in New Issue
Block a user