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-07-18 06:40:32 +00:00
|
|
|
command: node_modules/.bin/nodemon --ignore client server.js
|
|
|
|
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-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:
|
|
|
|
- "8080:5000"
|
2018-06-14 18:20:07 +00:00
|
|
|
|
|
|
|
worker:
|
2018-07-06 00:08:37 +00:00
|
|
|
build: .
|
2018-07-18 06:40:32 +00:00
|
|
|
command: node_modules/.bin/nodemon --ignore client server/ingestLogs.js
|
|
|
|
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
|