-
Notifications
You must be signed in to change notification settings - Fork 27
/
docker-compose.yml
64 lines (64 loc) · 1.48 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
version: '2'
services:
#mysql
mysql:
image: mysql:5.7
restart: always
container_name: mysql
volumes:
- ./mysql/init:/docker-entrypoint-initdb.d/
- ./mysql/sql:/opt/sql
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=123456
networks: #加入指定网络
- group_mall
#redis
redis:
image: redis
restart: always
container_name: redis
command: redis-server --requirepass 123456
ports:
- "6379:6379"
networks: #加入指定网络
- group_mall
#activemq
activemq:
image: rmohr/activemq
restart: always
container_name: activemq
ports:
- "61616:61616"
- "8161:8161"
networks: #加入指定网络
- group_mall
#mongo
mongo:
image: mongo
restart: always
container_name: mongo
ports:
- "27017:27017"
networks: #加入指定网络
- group_mall
#xxl-job
xxl-job:
image: xuxueli/xxl-job-admin:2.1.2
restart: always
container_name: xxl-job
ports:
- "8081:8080"
# link 到mysql 需要使用内部端口
environment:
PARAMS: '--spring.datasource.url=jdbc:mysql://mysql:3306/xxl_job?Unicode=true&characterEncoding=UTF-8 --spring
.datasource.username=root --spring.datasource.password=123456'
networks: #加入指定网络
- group_mall
depends_on:
- mysql
networks:
group_mall:
driver: bridge