-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yaml
161 lines (147 loc) · 3.21 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
147
148
149
150
151
152
153
154
155
156
157
158
159
version: "3"
services:
server:
build:
context: ./api
dockerfile: src/main/resources/Dockerfile
image: guojiaxing1995/easy-jmeter-api:v1
container_name: server
restart: always
expose:
- 5000
command: ["server", "prod"]
environment:
- MINIO_HOST=127.0.0.1
- MINIO_PORT=9085
networks:
- ej
ports:
- 8037:5000
- 8036:9000
volumes:
- ./logs/server/:/opt/logs/
- ./assets/:/opt/assets/
agent1:
build:
context: ./api
dockerfile: src/main/resources/Dockerfile
image: guojiaxing1995/easy-jmeter-api:v1
container_name: agent1
restart: always
expose:
- 5000
command: ["agent", "prod"]
environment:
- INFLUXDB_HOST=127.0.0.1
- INFLUXDB_PORT=8086
networks:
ej:
ipv4_address: 172.25.0.91
volumes:
- ./logs/agent1/:/opt/logs/
- /opt/apache-jmeter-5.6.2:/opt/apache-jmeter
agent2:
build:
context: ./api
dockerfile: src/main/resources/Dockerfile
image: guojiaxing1995/easy-jmeter-api:v1
container_name: agent2
restart: always
expose:
- 5000
command: ["agent", "prod"]
environment:
- INFLUXDB_HOST=127.0.0.1
- INFLUXDB_PORT=8086
networks:
ej:
ipv4_address: 172.25.0.92
volumes:
- ./logs/agent2/:/opt/logs/
- /opt/apache-jmeter-5.6:/opt/apache-jmeter
web:
build: ./web
image: guojiaxing1995/easy-jmeter-web:v1
container_name: web
restart: always
ports:
- 80:80
networks:
- ej
mysql:
image: mysql:5.7
container_name: mysql
restart: always
ports:
- 9081:3306
expose:
- 3306
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=easy-jmeter
- TZ=Asia/Shanghai
volumes:
- ./mysql/data:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
networks:
- ej
mongodb:
image: mongo:4.2
container_name: mongodb
restart: always
expose:
- 27017
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=mongo2020
- TZ=Asia/Shanghai
volumes:
- ./mongodb:/data/db
- /etc/localtime:/etc/localtime:ro
ports:
- 9090:27017
networks:
- ej
minio:
image: docker.io/bitnami/minio:2023
container_name: minio
restart: always
expose:
- 9000
- 9001
environment:
- MINIO_ROOT_USER=root
- MINIO_ROOT_PASSWORD=minio2023
- MINIO_DEFAULT_BUCKETS=dev
volumes:
- ./miniodb:/bitnami/minio/data
ports:
- 9085:9000
- 9086:9001
networks:
- ej
influxdb:
image: influxdb:1.8
container_name: influxdb
restart: always
ports:
- "8086:8086"
volumes:
- ./influxdb_data:/var/lib/influxdb
- /etc/localtime:/etc/localtime:ro
environment:
- INFLUXDB_DB=easyJmeter
- INFLUXDB_ADMIN_USER=admin
- INFLUXDB_ADMIN_PASSWORD=admin
- INFLUXDB_USER=root
- INFLUXDB_USER_PASSWORD=root
- TZ=Asia/Shanghai
networks:
- ej
networks:
ej:
ipam:
driver: default
config:
- subnet: "172.25.0.0/16"
gateway: 172.25.0.1