RAGchat / docker-compose.yml
moriire's picture
latest
7fd5271
raw
history blame
699 Bytes
version: "3"
services:
backend:
build: ./app/Dockerfile
command: uvicorn main:app --host 0.0.0.0
networks:
- caw
ports:
- "7860:7860"
volumes:
- ./config.yaml:/app/config.yaml
environment:
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/postgres
database:
image: postgres:latest
networks:
- caw
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- database:/var/lib/postgresql/data
ports:
- "5432:5432"
cache:
image: redis:latest
networks:
- caw
ports:
- "6379:6379"
volumes:
database:
networks:
caw: