-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
67 lines (67 loc) · 1.85 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
version: '3'
services:
frontend:
image: node:10.15.0
command: sh -c "cd /usr/src/app && npm install && (npm run storybook --ci | npm start)"
volumes:
- ./frontend:/usr/src/app
ports:
- "3000:3000"
- "35729:35729"
- "9009:9009"
container_name: frontend
environment:
- REACT_APP_GATEWAY_URL=http://localhost:8000
restart: unless-stopped
gateway:
image: node:10.15.0
command: sh -c "cd /usr/src/app && npm install && npm run dev"
volumes:
- ./gateway:/usr/src/app
ports:
- "8000:8000"
expose:
- "8000"
container_name: gateway
restart: unless-stopped
populationservice:
image: node:10.15.0
command: sh -c "cd /usr/src/app && npm install && npm run dev"
volumes:
- ./population:/usr/src/app
ports:
- "8001:8000"
expose:
- "8000"
container_name: populationservice
environment:
- MONGOURL=mongodb://population-db:27017/population
depends_on:
- population-db
restart: unless-stopped
population-db:
image: mongo
ports:
- "27017:27017"
container_name: population-db
updater:
image: node:10.15.0
command: sh -c "cd /usr/src/app && npm install && npm run dev"
volumes:
- ./updater:/usr/src/app
environment:
- POPULATION_POST_URL=http://populationservice:8000/countrystats
- EMISSION_POST_URL=http://populationservice:8000/countrystats
- POP_API_URL=http://mock-wb-api:8000/v2/en/indicator/SP.POP.TOTL
- CO_API_URL=http://mock-wb-api:8000/v2/en/indicator/EN.ATM.CO2E.KT
restart: unless-stopped
container_name: updater
mock-wb-api:
image: node:10.15.0
command: sh -c "cd /usr/src/app && npm install && npm run dev"
expose:
- "8000"
volumes:
- ./mock-wb-api:/usr/src/app
restart: unless-stopped
container_name: mock-wb-api