-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yml
124 lines (107 loc) · 2.75 KB
/
docker-compose.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
version: '3.7'
x-logging: &default-logging-settings
default_logging: &default_logging
driver: "json-file"
options:
max-size: "10m"
tag: "radius_server.{{.Name}}.{{.ID}}"
no_tag_logging: &no_tag_logging
driver: "json-file"
options:
max-size: "10m"
services:
auth:
platform: linux/amd64
container_name: radius_auth
build:
context: .
dockerfile: ./docker/Dockerfile
ports:
- "1812:1812/udp"
environment:
ENTRYPOINT: "${ENTRYPOINT:-/app/bin/auth.sh}"
RADIUS_PORT: 1812
volumes:
- .:/app
- ./data:/data
entrypoint: sh -c 'if [ -z "$$ENTRYPOINT" ]; then echo "ENTRYPOINT is empty!"; exit 0; fi; exec $$ENTRYPOINT'
tty: true
restart: "${RESTART_POLICY:-on-failure}"
logging: *default_logging
networks:
- pppoe_system
auth_test:
platform: linux/amd64
cap_add:
- SYS_PTRACE
container_name: auth_test
build:
context: .
dockerfile: ./docker/Dockerfile
ports:
- "2812:1812/udp"
environment:
ENTRYPOINT: "${ENTRYPOINT:-/app/bin/auth.sh}"
RADIUS_PORT: 1812
volumes:
- .:/app
- ./data:/data
entrypoint: sh -c 'if [ -z "$$ENTRYPOINT" ]; then echo "ENTRYPOINT is empty!"; exit 0; fi; exec $$ENTRYPOINT'
tty: true
restart: "${RESTART_POLICY:-on-failure}"
logging: *no_tag_logging
networks:
- pppoe_system
acct:
platform: linux/amd64
container_name: radius_acct
build:
context: .
dockerfile: ./docker/Dockerfile
ports:
- "1813:1813/udp"
environment:
ENTRYPOINT: "${ENTRYPOINT:-/app/bin/acct.sh}"
RADIUS_PORT: 1813
volumes:
- .:/app
- ./data:/data
entrypoint: sh -c 'if [ -z "$$ENTRYPOINT" ]; then echo "ENTRYPOINT is empty!"; exit 0; fi; exec $$ENTRYPOINT'
tty: true
restart: "${RESTART_POLICY:-on-failure}"
logging: *default_logging
networks:
- pppoe_system
dae:
platform: linux/amd64
container_name: radius_dae
build:
context: .
dockerfile: ./docker/Dockerfile
ports:
- "3799:3799/udp"
environment:
ENTRYPOINT: "${ENTRYPOINT:-/app/bin/dae.sh}"
RADIUS_PORT: 3799
volumes:
- .:/app
- ./data:/data
entrypoint: sh -c 'if [ -z "$$ENTRYPOINT" ]; then echo "ENTRYPOINT is empty!"; exit 0; fi; exec $$ENTRYPOINT'
tty: true
restart: "${RESTART_POLICY:-on-failure}"
logging: *default_logging
networks:
- pppoe_system
simulator:
platform: linux/amd64
container_name: simulator
image: jumanjiman/radclient:latest
volumes:
- .:/app
entrypoint: tail -f /dev/null
tty: true
networks:
- pppoe_system
networks:
pppoe_system:
name: pppoe_system_network_name