# Redis and Postgres for LOCAL DEVELOPMENT only. NOT used by the Hugging # Face Space, which runs degraded on purpose: no DATABASE_URL means the # database is fully off, and no REDIS_URL means the queue is off (the image # runs the CV worker in-process instead -- see POOLCOACH_LOCAL_CV). # # docker compose -f docker-compose.dev.yml up -d redis # set REDIS_URL=redis://localhost:6379/0 # ..\poolcoach-cv-env\Scripts\python.exe scripts\cv_worker.py # # The optional shot-list bookkeeping tables: # docker compose -f docker-compose.dev.yml up -d db # set DATABASE_URL=postgresql+psycopg://poolcoach:poolcoach@localhost:5432/poolcoach # app/db.py creates the two tables itself on setup -- there is no migration # tool in this repository. services: db: image: postgres:16 container_name: poolcoach-db environment: POSTGRES_USER: poolcoach POSTGRES_PASSWORD: poolcoach POSTGRES_DB: poolcoach ports: - "5432:5432" volumes: - poolcoach_pgdata:/var/lib/postgresql/data redis: image: redis:7 container_name: poolcoach-redis ports: - "6379:6379" # No volume, deliberately: the queue holds live data (jobs and results # with short TTLs) and losing it on restart is correct -- there is # nothing here worth persisting. volumes: poolcoach_pgdata: