-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (51 loc) · 1.15 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
version: "3.3"
services:
api-gateway:
build:
context: ApiGateway/
dockerfile: ./ApiGateway/Dockerfile
environment:
BASKET_SERVICE: "http://basket-service:3000/api/"
ORDER_SERVICE: "http://order-service:8080/api/"
PRODUCT_SERVICE: "http://product-catalog:8080/api/"
ports:
- "8080:80"
depends_on:
- product-catalog
- basket-service
- order-service
product-catalog:
build: ProductCatalog/
environment:
MONGODBATLASURI: ${MONGODBATLASURI}
ports:
- "8085:8080"
basket-service:
build: basket-microservice/
environment:
REDIS_URL: "redis"
RESET_REDIS_PW: ${RESET_REDIS_PW}
ports:
- "8086:3000"
depends_on:
- redis
redis:
image: "redis:alpine"
ports:
- "6379:6379"
order-service:
build: OrderService/
ports:
- "8075:8080"
environment:
DB_URL: "jdbc:postgresql://order_db:5432/postgres"
DB_USERNAME: "postgres"
DB_PW: "postgres"
depends_on:
- order_db
order_db:
image: "postgres:alpine"
environment:
POSTGRES_PASSWORD: "postgres"
ports:
- "5432:5432"