-
Notifications
You must be signed in to change notification settings - Fork 142
/
docker-compose.yml
58 lines (54 loc) · 1.29 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
version: "3"
services:
api-gateway:
build:
context: "."
dockerfile: "./api-gateway/Dockerfile"
depends_on:
- listings-service
- users-service
environment:
- LISTINGS_SERVICE_URI=http://listings-service:7100
- USERS_SERVICE_URI=http://users-service:7101
ports:
- "7000:7000"
volumes:
- ./api-gateway:/opt/app
listings-service:
build:
context: "."
dockerfile: "./listings-service/Dockerfile"
depends_on:
- listings-service-db
environment:
- DB_URI=mysql://root:password@listings-service-db/db?charset=UTF8
ports:
- "7100:7100"
volumes:
- ./listings-service:/opt/app
listings-service-db:
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=db
image: mysql:5.7.20
ports:
- 0.0.0.0:7200:3306
users-service:
build:
context: "."
dockerfile: "./users-service/Dockerfile"
depends_on:
- users-service-db
environment:
- DB_URI=mysql://root:password@users-service-db/db?charset=UTF8
ports:
- "7101:7101"
volumes:
- ./users-service:/opt/app
users-service-db:
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=db
image: mysql:5.7.20
ports:
- 0.0.0.0:7201:3306