version: "3" | |
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: | |