-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
136 lines (127 loc) · 3.66 KB
/
Copy pathdocker-compose.yml
File metadata and controls
136 lines (127 loc) · 3.66 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
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
version: '3.8'
services:
# ==================== 前端 Nginx ====================
aiops-web:
image: nginx:alpine
container_name: aiops-web
ports:
- "${WEB_PORT:-81}:80"
volumes:
- ${WEB_DIST_PATH:-../XnetAIops-web/playground/dist}:/usr/share/nginx/html:ro
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- aiops-usr-service
- aiops-clm-service
- aiops-hom-service
- aiops-svm-service
- aiops-mon-service
- aiops-k8s-service
- aiops-reg-service
networks:
- aiops-net
restart: unless-stopped
# ==================== 后端微服务 ====================
aiops-clm-service:
build:
context: ./aiops-clm-service
image: aiops-clm-service:${TAG:-latest}
container_name: aiops-clm-service
ports:
- "${CLM_PORT:-9181}:9181"
environment:
- DB_HOST=${DB_HOST:?DB_HOST is required}
- DB_PORT=${DB_PORT:-3306}
- DB_PASSWORD=${DB_PASSWORD:?DB_PASSWORD is required}
networks:
- aiops-net
restart: unless-stopped
aiops-hom-service:
build:
context: ./aiops-hom-service
image: aiops-hom-service:${TAG:-latest}
container_name: aiops-hom-service
ports:
- "${HOM_PORT:-9182}:9182"
environment:
- DB_HOST=${DB_HOST:?DB_HOST is required}
- DB_PORT=${DB_PORT:-3306}
- DB_PASSWORD=${DB_PASSWORD:?DB_PASSWORD is required}
networks:
- aiops-net
restart: unless-stopped
aiops-svm-service:
build:
context: ./aiops-svm-service
image: aiops-svm-service:${TAG:-latest}
container_name: aiops-svm-service
ports:
- "${SVM_PORT:-9183}:9183"
environment:
- DB_HOST=${DB_HOST:?DB_HOST is required}
- DB_PORT=${DB_PORT:-3306}
- DB_PASSWORD=${DB_PASSWORD:?DB_PASSWORD is required}
networks:
- aiops-net
restart: unless-stopped
aiops-mon-service:
build:
context: ./aiops-mon-service
image: aiops-mon-service:${TAG:-latest}
container_name: aiops-mon-service
ports:
- "${MON_PORT:-9184}:9184"
environment:
- DB_HOST=${DB_HOST:?DB_HOST is required}
- DB_PORT=${DB_PORT:-3306}
- DB_PASSWORD=${DB_PASSWORD:?DB_PASSWORD is required}
networks:
- aiops-net
restart: unless-stopped
aiops-usr-service:
build:
context: ./aiops-usr-service
image: aiops-usr-service:${TAG:-latest}
container_name: aiops-usr-service
ports:
- "${USR_PORT:-9185}:9185"
environment:
- DB_HOST=${DB_HOST:?DB_HOST is required}
- DB_PORT=${DB_PORT:-3306}
- DB_PASSWORD=${DB_PASSWORD:?DB_PASSWORD is required}
- REDIS_HOST=${REDIS_HOST:?REDIS_HOST is required}
- REDIS_PORT=${REDIS_PORT:-6379}
- JWT_SECRET=${JWT_SECRET:?JWT_SECRET is required}
networks:
- aiops-net
restart: unless-stopped
aiops-k8s-service:
build:
context: ./aiops-k8s-service
image: aiops-k8s-service:${TAG:-latest}
container_name: aiops-k8s-service
ports:
- "${K8S_PORT:-9186}:9186"
environment:
- DB_HOST=${DB_HOST:?DB_HOST is required}
- DB_PORT=${DB_PORT:-3306}
- DB_PASSWORD=${DB_PASSWORD:?DB_PASSWORD is required}
networks:
- aiops-net
restart: unless-stopped
aiops-reg-service:
build:
context: ./aiops-reg-service
image: aiops-reg-service:${TAG:-latest}
container_name: aiops-reg-service
ports:
- "${REG_PORT:-9187}:9187"
environment:
- DB_HOST=${DB_HOST:?DB_HOST is required}
- DB_PORT=${DB_PORT:-3306}
- DB_PASSWORD=${DB_PASSWORD:?DB_PASSWORD is required}
networks:
- aiops-net
restart: unless-stopped
networks:
aiops-net:
driver: bridge