unpkg/docker-compose.yml

51 lines
799 B
YAML
Raw Normal View History

2018-06-14 18:20:07 +00:00
version: "3"
networks:
localnet: {}
services:
cache:
image: redis
volumes:
2018-07-06 17:53:16 +00:00
- ./redis/cache:/data
networks:
- localnet
data:
image: redis
volumes:
- ./redis/data:/data
2018-06-14 18:20:07 +00:00
networks:
- localnet
server:
build: .
command: nodemon --ignore client server.js
2018-07-06 17:53:16 +00:00
environment:
- CACHE_URL=redis://cache:6379
- DATA_URL=redis://data:6379
env_file: .env
volumes:
- .:/app
depends_on:
- cache
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:
build: .
command: nodemon --ignore client server/ingestLogs.js
2018-07-06 17:53:16 +00:00
environment:
- DATA_URL=redis://data:6379
2018-06-14 18:20:07 +00:00
env_file: .env
volumes:
- .:/app
2018-06-14 18:20:07 +00:00
depends_on:
2018-07-06 17:53:16 +00:00
- data
networks:
- localnet