Updated docker compose file

This commit is contained in:
Victor Mylle 2023-03-09 11:19:24 +01:00
parent 0e0b4794f6
commit 39dcca8f88
2 changed files with 11 additions and 1 deletions

View File

@ -8,4 +8,5 @@ RUN pip install -r requirements.txt
RUN apt update && apt install -y ffmpeg
COPY . .
CMD ["python", "main.py"]
CMD ["sh", "-c", "celery -A src.routers.signvideo worker --loglevel=INFO & python main.py"]
# CMD ["python", "main.py"]

View File

@ -21,6 +21,8 @@ services:
DEFAULT_USER_EMAIL: "sign.language@tool.com"
DEFAULT_USER_PASSWORD: "SignLanguageTool123!"
CELERY_REDIS: "redis://redis:6379/0"
frontend:
build:
context: ./frontend
@ -28,3 +30,10 @@ services:
restart: always
ports:
- "3003:3000"
redis:
image: redis:alpine
restart: always
# save data
volumes:
- ./data/redis:/data