generated from SupaLlama/supallama-rag-backend-python-fastapi-celery-redis-supabase-langchain-pinecone-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
44 lines (42 loc) · 1.13 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
services:
# Background worker queue
redis:
image: redis:7-alpine
web:
build:
context: .
dockerfile: ./Dockerfile
image: supallama-rag-backend-fastapi
# Run shell script to start FastAPI server inside
# the container
command: /start-fastapi.sh
# This volume is used to map the files and folders
# on the host to the docker container.
# This way, if we change code on the host, the code
# in the docker container will also be changed.
volumes:
- .:/app
ports:
- 8000:8000
env_file:
- .env
depends_on:
- redis
celery_worker:
build:
context: .
dockerfile: ./Dockerfile
image: supallama-rag-backend-celery-worker
# Run shell script to start the Celery background
# worker inside the container
command: /start-celery-worker.sh
# This volume is used to map the files and folders
# on the host to the docker container.
# This way, if we change code on the host, the code
# in the docker container will also be changed.
volumes:
- .:/app
env_file:
- .env
depends_on:
- redis