2018-06-14 18:20:07 +00:00
|
|
|
version: "3"
|
|
|
|
|
|
|
|
networks:
|
|
|
|
localnet: {}
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
2018-07-06 17:53:16 +00:00
|
|
|
data:
|
|
|
|
image: redis
|
2018-06-14 18:20:07 +00:00
|
|
|
networks:
|
|
|
|
- localnet
|
|
|
|
|
|
|
|
server:
|
2018-07-06 00:08:37 +00:00
|
|
|
build: .
|
2018-08-06 18:10:21 +00:00
|
|
|
command: node_modules/.bin/nodemon --ignore modules/client server.js
|
2018-07-18 06:40:32 +00:00
|
|
|
env_file: .env
|
2018-07-06 17:53:16 +00:00
|
|
|
environment:
|
2018-07-18 06:40:32 +00:00
|
|
|
- CACHE_URL=redis://data:6379
|
2018-07-06 17:53:16 +00:00
|
|
|
- DATA_URL=redis://data:6379
|
2018-07-18 06:58:43 +00:00
|
|
|
- PORT=8080
|
2018-07-06 00:08:37 +00:00
|
|
|
volumes:
|
|
|
|
- .:/app
|
2018-07-18 06:40:32 +00:00
|
|
|
- /app/node_modules
|
2018-07-06 00:08:37 +00:00
|
|
|
depends_on:
|
2018-07-06 17:53:16 +00:00
|
|
|
- data
|
2018-06-14 18:20:07 +00:00
|
|
|
networks:
|
|
|
|
- localnet
|
2018-07-06 17:53:16 +00:00
|
|
|
ports:
|
2018-07-18 06:58:43 +00:00
|
|
|
- "8080:8080"
|
2018-06-14 18:20:07 +00:00
|
|
|
|
|
|
|
worker:
|
2018-07-06 00:08:37 +00:00
|
|
|
build: .
|
2018-08-26 03:14:49 +00:00
|
|
|
command: node_modules/.bin/nodemon --ignore modules/client modules/ingestLogsEveryMinute.js
|
2018-07-18 06:40:32 +00:00
|
|
|
env_file: .env
|
2018-07-06 17:53:16 +00:00
|
|
|
environment:
|
|
|
|
- DATA_URL=redis://data:6379
|
2018-07-06 00:08:37 +00:00
|
|
|
volumes:
|
|
|
|
- .:/app
|
2018-07-18 06:40:32 +00:00
|
|
|
- /app/node_modules
|
2018-06-14 18:20:07 +00:00
|
|
|
depends_on:
|
2018-07-06 17:53:16 +00:00
|
|
|
- data
|
2018-07-06 00:08:37 +00:00
|
|
|
networks:
|
|
|
|
- localnet
|