first commit
This commit is contained in:
29
docker-compose.yml
Normal file
29
docker-compose.yml
Normal file
@ -0,0 +1,29 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
mongo:
|
||||
image: mongo
|
||||
ports:
|
||||
- "27017:27017"
|
||||
|
||||
redis:
|
||||
image: redis
|
||||
ports:
|
||||
- "6379:6379"
|
||||
|
||||
backend:
|
||||
build: ./backend
|
||||
ports:
|
||||
- "6000:6000"
|
||||
depends_on:
|
||||
- redis
|
||||
- mongo
|
||||
|
||||
worker:
|
||||
build: ./worker
|
||||
depends_on:
|
||||
- redis
|
||||
- mongo
|
||||
restart: always
|
||||
entrypoint: ["sh", "-c", "while true; do python worker.py; sleep 60; done"]
|
||||
|
Reference in New Issue
Block a user