Separate out cache + data servers

This commit is contained in:
Michael Jackson
2018-07-06 10:53:16 -07:00
parent ffde00c444
commit 8ef362ba09
12 changed files with 43 additions and 38 deletions

View File

@ -8,34 +8,43 @@ services:
cache:
image: redis
volumes:
- ./data:/data
ports:
- "6379:6379"
- ./redis/cache:/data
networks:
- localnet
data:
image: redis
volumes:
- ./redis/data:/data
networks:
- localnet
server:
build: .
image: server
command: nodemon --ignore client server.js
environment:
- CACHE_URL=redis://cache:6379
- DATA_URL=redis://data:6379
env_file: .env
volumes:
- .:/app
depends_on:
- cache
ports:
- "8080:5000"
- data
networks:
- localnet
ports:
- "8080:5000"
worker:
build: .
image: worker
command: nodemon --ignore client server/ingestLogs.js
environment:
- DATA_URL=redis://data:6379
env_file: .env
volumes:
- .:/app
depends_on:
- cache
- data
networks:
- localnet