-
Notifications
You must be signed in to change notification settings - Fork 38
/
docker-compose.yml
47 lines (43 loc) · 1.14 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
version: '3'
services:
redis:
image: redis:6.2.4
ports:
- 6379:6379
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 10s
timeout: 5s
retries: 3
volumes:
- ./.docker/redis/data/:/data
mysql:
image: mysql:5.7
ports:
- 3306:3306
# 如果需要mysql持久化,则打开注释,会保存数据,重启镜像不会丢失
volumes:
- ./.docker/mysql:/var/lib/mysql
- ./database:/data/database # 挂在本地sql文件到容器
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: shop_development
healthcheck:
test: ['CMD-SHELL', 'mysqladmin ping -uroot -ppassword']
interval: 10s
timeout: 5s
retries: 3
jaeger:
image: jaegertracing/all-in-one:1.23.0
ports:
- 6832:6832/udp
- 16686:16686
rabbitmq:
image: rabbitmq:3.8.18-beta.1-management
ports:
- 5672:5672
- 15672:15672
# 如果需要rabbitmq持久化,则打开注释,会保存数据,重启镜像不会丢失
volumes:
- ./.docker/rabbitmq/data/:/var/lib/rabbitmq
- ./.docker/rabbitmq/:/var/log/rabbitmq