spb/qwhpi Public
QHPI — Quebec Housing Price Index: quality-adjusted, hierarchically pooled housing price indexes.
Python 63.9%
TypeScript 25.4%
CSS 5.5%
TeX 3.5%
SQL 0.8%
Makefile 0.5%
Dockerfile 0.5%
1# =============================================================================2# QWHPI — Quebec Weekly Housing Price Index3# Author : Simon-Pierre Boucher4# Contact : contact@spboucher.ai5# File : docker-compose.yml6# Purpose : Full platform — Postgres, API, dashboard, weekly scheduler.7# =============================================================================89services:10 db:11 image: postgres:16-alpine12 environment:13 POSTGRES_USER: qwhpi14 POSTGRES_PASSWORD: qwhpi15 POSTGRES_DB: qwhpi16 volumes:17 - pgdata:/var/lib/postgresql/data18 healthcheck:19 test: ["CMD-SHELL", "pg_isready -U qwhpi"]20 interval: 5s21 retries: 102223 api:24 build: ./api25 environment:26 QWHPI_DATA_DIR: /data/processed27 DATABASE_URL: postgresql://qwhpi:qwhpi@db:5432/qwhpi28 volumes:29 - ./data/processed:/data/processed:ro30 ports:31 - "8080:8080"32 depends_on:33 db:34 condition: service_healthy3536 web:37 build: ./web38 environment:39 NEXT_PUBLIC_API_URL: http://localhost:808040 ports:41 - "3000:3000"42 depends_on:43 - api4445 scheduler:46 build: ./ops/scheduler47 environment:48 DATABASE_URL: postgresql://qwhpi:qwhpi@db:5432/qwhpi49 volumes:50 - ./:/workspace51 depends_on:52 db:53 condition: service_healthy5455volumes:56 pgdata:57