-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
72 lines (66 loc) · 1.86 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
69
70
71
72
version: '2'
services:
redis:
image: redis:alpine
ports:
- 6379:6379
web-client:
image: node:10.13.0-alpine
working_dir: /home/web-client
command: yarn start
volumes:
- ./web-client:/home/web-client
- ./web-client/node_modules:/home/web-client/node_modules:delegated
ports:
- '3000:3000'
thermometer-sensor:
image: node:10.13.0-alpine
working_dir: /home/thermometer-sensor
command: yarn start
volumes:
- ./thermometer-sensor:/home/thermometer-sensor
- ./thermometer-sensor/node_modules:/home/thermometer-sensor/node_modules:delegated
depends_on:
- redis
ports:
- '8080:8080'
environment:
- NODE_ENV=$NODE_ENV
- PORT=$SENSOR_SERVER_PORT
- NCHAN_URL=$NCHAN_URL
- SENSOR_REDIS_URL=$SENSOR_REDIS_URL
notification:
image: meroje/alpine-nchan:latest
working_dir: /home/notification
volumes:
- ./notification:/home/notification
ports:
- 9090:80
volumes:
- ./notification/nginx.conf:/etc/nginx/nginx.conf
data-ingestion:
image: node:10.13.0-alpine
working_dir: /home/data-ingestion
command: yarn start
volumes:
- ./data-ingestion:/home/data-ingestion
- ./data-ingestion/node_modules:/home/data-ingestion/node_modules:delegated
depends_on:
- thermometer-sensor
environment:
- NODE_ENV=$NODE_ENV
- SENSOR_URL=$SENSOR_URL
integration-tests:
image: node:10.13.0-alpine
working_dir: /home/integration-tests
depends_on:
- thermometer-sensor
- notification
volumes:
- ./integration-tests:/home/integration-tests
- ./integration-tests/node_modules:/home/integration-tests/node_modules:delegated
environment:
- NODE_ENV=$NODE_ENV
- NCHAN_URL=$NCHAN_URL
- SENSOR_URL=$SENSOR_URL
- SENSOR_REDIS_URL=$SENSOR_REDIS_URL