services: db: image: postgres:15-alpine environment: POSTGRES_DB: debt_manager POSTGRES_USER: postgres POSTGRES_PASSWORD: b6f1c451ed57041ec9a138a61c03cead volumes: - pgdata:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] interval: 5s timeout: 5s retries: 5 backend: build: ./backend image: debt-manager-backend ports: - "8000:8000" environment: DATABASE_URL: postgresql+asyncpg://postgres:postgres@db:5432/debt_manager SECRET_KEY: 562fa55e5e0cea1e00ff645be1da4f7c932439d97de7ffacd3d95156d9ccd7af depends_on: db: condition: service_healthy frontend: build: ./frontend image: debt-manager-frontend ports: - "806:80" depends_on: - backend volumes: pgdata: