MedAI / docker-compose.yml
moriire's picture
Update docker-compose.yml
14ba827 verified
raw
history blame
701 Bytes
version: "3.8"
services:
backend:
build:
build: .
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: