-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (36 loc) · 1.04 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
version: '3'
services:
customercommandside:
build: ./customers-service/
ports:
- "8081:8080"
environment:
EVENTUATE_API_KEY_ID: ${EVENTUATE_API_KEY_ID}
EVENTUATE_API_KEY_SECRET: ${EVENTUATE_API_KEY_SECRET}
orderhistoryqueryside:
build: ./orders-history-view-service/
ports:
- "8082:8080"
depends_on:
- mongodb
environment:
SPRING_DATA_MONGODB_URI: mongodb://mongodb/customers_and_orders
EVENTUATE_API_KEY_ID: ${EVENTUATE_API_KEY_ID}
EVENTUATE_API_KEY_SECRET: ${EVENTUATE_API_KEY_SECRET}
ordercommandside:
build: ./orders-service/
ports:
- "8083:8080"
depends_on:
- customercommandside
environment:
CUSTOMER_SERVICE_URL: http://customercommandside:8080/customers/{customerId}
ENDPOINTS_SENSITIVE: "false"
EVENTUATE_API_KEY_ID: ${EVENTUATE_API_KEY_ID}
EVENTUATE_API_KEY_SECRET: ${EVENTUATE_API_KEY_SECRET}
mongodb:
image: mongo:3.0.4
hostname: mongodb
command: mongod --smallfiles
ports:
- "27017:27017"