-
Notifications
You must be signed in to change notification settings - Fork 176
/
docker-compose.yml
122 lines (122 loc) · 2.38 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
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
version: '3'
services:
rabbit:
image: "rabbitmq:3-management"
hostname: "rabbit"
environment:
RABBITMQ_ERLANG_COOKIE: "SWQOKODSQALRPCLNMEQG"
RABBITMQ_DEFAULT_USER: "guest"
RABBITMQ_DEFAULT_PASS: "guest"
RABBITMQ_DEFAULT_VHOST: "/"
ports:
- "15672"
- "5672"
labels:
NAME: "rabbitmq"
redis:
image: redis:latest
ports:
- "16379:6379"
volumes:
- ./data/redisdata:/data
mysql:
image : mysql:5.7
ports:
- "13306:3306"
restart: always
environment:
- MYSQL_ROOT_PASSWORD=root
volumes:
- ./mysql:/docker-entrypoint-initdb.d
- ./mysql:/etc/mysql/conf.d
- ./data/mysqldata:/var/lib/mysql
eureka:
image: club.newtech/microservice-discovery-eureka
ports:
- "8761:8761"
uc:
image: club.newtech/uc
ports:
- "8000"
environment:
- REDIS_HOST=redis
- REDIS_DB=0
- DB_HOST=mysql
- DB_SCHEMA=qbike
- EUREKA_HOST=eureka
- RABBIT=rabbit
links:
- eureka
- mysql
- rabbit
intention:
image: club.newtech/intention
ports:
- "8001"
environment:
- REDIS_HOST=redis
- REDIS_DB=0
- DB_HOST=mysql
- DB_SCHEMA=qbike
- EUREKA_HOST=eureka
- RABBIT=rabbit
links:
- eureka
- mysql
- rabbit
position:
image: club.newtech/position
ports:
- "8003"
environment:
- REDIS_HOST=redis
- REDIS_DB=0
- DB_HOST=mysql
- DB_SCHEMA=qbike
- EUREKA_HOST=eureka
- RABBIT=rabbit
links:
- eureka
- mysql
- rabbit
order:
image: club.newtech/order
ports:
- "8002"
environment:
- REDIS_HOST=redis
- REDIS_DB=0
- DB_HOST=mysql
- DB_SCHEMA=qbike
- EUREKA_HOST=eureka
- RABBIT=rabbit
links:
- eureka
- mysql
- rabbit
api-gateway:
image: club.newtech/api-gateway
ports:
- "8050:8050"
environment:
- REDIS_HOST=redis
- REDIS_DB=0
- DB_HOST=mysql
- DB_SCHEMA=qbike
- EUREKA_HOST=eureka
- RABBIT=rabbit
links:
- eureka
- rabbit
zipkin:
image: openzipkin/zipkin
ports:
- "9411:9411"
environment:
- RABBIT_ADDRESSES=rabbit
# volumes:
# - ./wait-for-it.sh:/wait-for-it.sh
depends_on:
- rabbit
links:
- rabbit