-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
146 lines (137 loc) · 3.05 KB
/
docker-compose.yaml
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
version: '3'
networks:
waf-network:
driver: bridge
services:
# WafCoraza服务
wafcoraza:
build:
context: ./wafcoraza
dockerfile: Dockerfile
container_name: wafcoraza
restart: always
environment:
- TZ=Asia/Shanghai
- PROJECT_ROOT=/
volumes:
- ./wafcoraza/conf:/wafcoraza/conf
- ./wafcoraza/ruleset:/wafcoraza/ruleset
- ./wafcoraza/waf_log:/wafcoraza/waf_log
ports:
- "8887:8887"
networks:
- waf-network
# Analyse服务
analyse:
build:
context: ./analyse
dockerfile: Dockerfile
container_name: analyse
restart: always
environment:
- TZ=Asia/Shanghai
- PROJECT_ROOT=/
volumes:
- ./analyse/configs:/configs
ports:
- "8000:8000"
networks:
- waf-network
depends_on:
- wafcoraza
# WafConsole Cron服务
waf-cron:
build:
context: ./wafconsole
dockerfile: app/cron/Dockerfile
container_name: waf-cron
restart: always
environment:
- TZ=Asia/Shanghai
volumes:
- ./wafconsole/app/cron/configs:/data/conf
ports:
- "8001:8000"
- "9001:9000"
networks:
- waf-network
depends_on:
- waf-top
- waf-user
- waf-dashboard
# WafConsole Dashboard服务
waf-dashboard:
build:
context: ./wafconsole
dockerfile: app/dashBorad/Dockerfile
container_name: waf-dashboard
restart: always
environment:
- TZ=Asia/Shanghai
volumes:
- ./wafconsole/app/dashBorad/configs:/data/conf
ports:
- "8003:8003"
- "9003:9006"
networks:
- waf-network
# WafConsole User服务
waf-user:
build:
context: ./wafconsole
dockerfile: app/user/Dockerfile
container_name: waf-user
restart: always
environment:
- TZ=Asia/Shanghai
volumes:
- ./wafconsole/app/user/configs:/data/conf
ports:
- "8002:8002"
- "9002:9002"
networks:
- waf-network
# WafConsole WafTop服务
waf-top:
build:
context: ./wafconsole
dockerfile: app/wafTop/Dockerfile
container_name: waf-top
restart: always
environment:
- TZ=Asia/Shanghai
volumes:
- ./wafconsole/app/wafTop/configs:/data/conf
ports:
- "8007:8001"
- "9007:9001"
networks:
- waf-network
# 数据库服务 (根据您项目的需求可能需要添加)
# mysql:
# image: mysql:8.0
# container_name: mysql
# restart: always
# environment:
# - MYSQL_ROOT_PASSWORD=yourpassword
# - MYSQL_DATABASE=waf
# - TZ=Asia/Shanghai
# volumes:
# - ./mysql-data:/var/lib/mysql
# - ./wafconsole/migrations/mysql:/docker-entrypoint-initdb.d
# ports:
# - "3306:3306"
# networks:
# - waf-network
# Redis服务 (如果项目需要)
# redis:
# image: redis:6-alpine
# container_name: redis
# restart: always
# command: redis-server --appendonly yes
# volumes:
# - ./redis-data:/data
# ports:
# - "6379:6379"
# networks:
# - waf-network