-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-dev.yml
76 lines (72 loc) · 1.51 KB
/
docker-compose-dev.yml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '3.7'
services:
nac_api:
build: .
ports:
- 1443:4430
networks:
cnaas:
ipv4_address: 172.31.0.10
environment:
- RADIUS_SLAVE=no
- RADIUS_COA_SECRET=testing123
- RADIUS_NO_PORT_LOCK=no
- RADIUS_DEFAULT_VLAN=13
depends_on:
- nac_postgres
nac_radius:
build: ./docker/radius
ports:
- 1812:1812/udp
- 1813:1813/udp
networks:
cnaas:
ipv4_address: 172.31.0.20
environment:
- RADIUS_SERVER_SECRET=testing123
depends_on:
- nac_api
volumes:
- type: volume
source: nac-freeradius-data
target: /etc/Freeradius/3.0/
- type: volume
source: nac-var-data
target: /var/
- type: volume
source: nac-api-certs
target: /opt/cnaas/certs/
nac_postgres:
build: ./docker/postgres
restart: unless-stopped
volumes:
- type: volume
source: nac-postgres-data
target: /var/lib/postgresql/data/
environment:
- POSTGRES_USER=cnaas
- POSTGRES_PASSWORD=cnaas
- POSTGRES_DB=nac
ports:
- 5432:5432
networks:
cnaas:
ipv4_address: 172.31.0.30
networks:
cnaas:
driver: bridge
name: cnaas
ipam:
config:
- subnet: 172.31.0.0/24
driver_opts:
com.docker.network.bridge.name: br-cnaas
volumes:
nac-postgres-data:
external: false
nac-freeradius-data:
external: false
nac-var-data:
external: false
nac-api-certs:
external: false