-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (45 loc) · 1.02 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
version: "3"
services:
api-gateway:
build: "./api-gateway"
depends_on:
- listings-service
- users-service
ports:
- 7000:7000
volumes:
- ./api-gateway:/opt/app
listings-service:
build: "./listings-service"
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: "./users-service"
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