-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (59 loc) · 1.89 KB
/
Copy pathdocker-compose.yml
File metadata and controls
62 lines (59 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#
# Author: Fabio Grasso <fabio.grasso@okta.com>
# License: Apache-2.0
# Version: 1.0.0
# Description: Docker-compose to start a full RADIUS Lab with:
# - Okta RADIUS Agent (RADIUS Server)
# - radclient (CLI RADIUS Client)
# - OpenVPN AS
#
# -----------------------------------------------------------------------------
services:
okta-radius-agent:
build:
context: ./docker/okta-radius-agent
args:
DEB_URL: ${DEB_URL:-}
volumes:
- ./data/conf/okta/config:/opt/okta/ragent/user/config/radius
- ./data/conf/okta/lib:/var/lib/ragent
- ./data/logs/okta:/opt/okta/ragent/logs
platform: linux/amd64 # Workaround for compatibility with MacOS
stdin_open: true
tty: true
environment:
OKTA_ORG: ${OKTA_ORG}
RADIUS_SECRET: ${RADIUS_SECRET}
RADIUS_PORT: ${RADIUS_PORT:-1812}
TEST_USERNAME: ${TEST_USERNAME:-}
TEST_PASSWORD: ${TEST_PASSWORD:-}
ports:
- "${RADIUS_PORT:-1812}:${RADIUS_PORT:-1812}/udp"
restart: unless-stopped
networks:
- radius_network
openvpn-as:
build: ./docker/openvpn-as
depends_on:
- okta-radius-agent
ports:
- "943:943" # Admin Web UI and Client Web UI (HTTPS)
- "443:443" # OpenVPN TCP port
- "1194:1194/udp" # OpenVPN UDP port
volumes:
- ./data/conf/openvpn:/openvpn/etc
cap_add:
- NET_ADMIN # Grants the container necessary network administration capabilities
- MKNOD # Allows the container to create device nodes
devices:
- /dev/net/tun:/dev/net/tun # Provides access to the TUN device for VPN traffic
restart: unless-stopped
environment:
RADIUS_SECRET: ${RADIUS_SECRET}
RADIUS_PORT: ${RADIUS_PORT:-1812}
OPENVPN_PASSWORD: ${OPENVPN_PASSWORD:-admin}
networks:
- radius_network
networks:
radius_network:
driver: bridge