# ============================================================================= # QWHPI — Quebec Weekly Housing Price Index # Author : Simon-Pierre Boucher # Contact : contact@spboucher.ai # File : docker-compose.yml # Purpose : Full platform — Postgres, API, dashboard, weekly scheduler. # ============================================================================= services: db: image: postgres:16-alpine environment: POSTGRES_USER: qwhpi POSTGRES_PASSWORD: qwhpi POSTGRES_DB: qwhpi volumes: - pgdata:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U qwhpi"] interval: 5s retries: 10 api: build: ./api environment: QWHPI_DATA_DIR: /data/processed DATABASE_URL: postgresql://qwhpi:qwhpi@db:5432/qwhpi volumes: - ./data/processed:/data/processed:ro ports: - "8080:8080" depends_on: db: condition: service_healthy web: build: ./web environment: NEXT_PUBLIC_API_URL: http://localhost:8080 ports: - "3000:3000" depends_on: - api scheduler: build: ./ops/scheduler environment: DATABASE_URL: postgresql://qwhpi:qwhpi@db:5432/qwhpi volumes: - ./:/workspace depends_on: db: condition: service_healthy volumes: pgdata: