unpkg/docker-compose.yml

44 lines
779 B
YAML
Raw Normal View History

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:
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
- PORT=8080
volumes:
- .:/app
2018-07-18 06:40:32 +00:00
- /app/node_modules
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:8080"
2018-06-14 18:20:07 +00:00
worker:
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
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
networks:
- localnet