-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (61 loc) · 1.25 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
version: "3"
services:
auth-db:
image: postgres:11
container_name: auth-db
restart: always
environment:
- POSTGRES_DB=auth-db
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=123456
ports:
- 5432:5432
product-db:
image: postgres:11
container_name: product-db
restart: always
environment:
- POSTGRES_DB=product-db
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=123456
ports:
- 5433:5432
sales-db:
image: tutum/mongodb
container_name: sales-db
restart: always
environment:
- MONGODB_USER="admin"
- MONGODB_DATABASE="sales"
- MONGODB_PASS="123456"
ports:
- 27017:27017
- 28017:28017
auth-api:
build: './auth-api'
container_name: auth-api
environment:
- PORT=8080
ports:
- 8080:8080
product-api:
build: './product-api'
container_name: product-api
environment:
- PORT=8081
ports:
- 8081:8081
sales-api:
build: './sales-api'
container_name: sales-api
environment:
- PORT=8082
ports:
- 8082:8082
sales_rabbit:
image: rabbitmq:3-management
container_name: sales_rabbit
ports:
- 5672:5672
- 25676:25676
- 15672:15672