Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.

fix: use pgvector/pgvector:pg16 for Postgres and rename env.example to .env.example#4

Open
lutzgo wants to merge 1 commit into
learnhouse:mainfrom
lutzgo:fix/pgvector-and-env-example
Open

fix: use pgvector/pgvector:pg16 for Postgres and rename env.example to .env.example#4
lutzgo wants to merge 1 commit into
learnhouse:mainfrom
lutzgo:fix/pgvector-and-env-example

Conversation

@lutzgo

@lutzgo lutzgo commented Mar 25, 2026

Copy link
Copy Markdown

Summary

Two small fixes to unblock a clean first-run setup:

  • Use pgvector/pgvector:pg16 instead of postgres:16-alpine — LearnHouse relies on the pgvector extension for vector search. The stock postgres:16-alpine image does not ship with this extension, so users hit an error on first boot when the app tries to create the vector column type. pgvector/pgvector:pg16 is the official drop-in image that includes the extension pre-installed; it is based on the same postgres:16-alpine base.

  • Rename env.example.env.example — The README (and the inline comment inside the file itself) document the setup step as cp .env.example .env. With the old filename env.example that command fails with No such file or directory. Renaming to .env.example makes the documented workflow work without modification. The inline comment inside the file is updated to match.

Test plan

  • cp .env.example .env succeeds after clone
  • docker compose up -d starts without a missing-extension error on the db service
  • Existing data volumes are unaffected (same underlying Postgres 16 engine)

…xample

- Replace postgres:16-alpine with pgvector/pgvector:pg16 in docker-compose.yml
  so vector-search features work out of the box without a manual extension install.

- Rename env.example → .env.example to match the documented setup command
  (`cp .env.example .env`). The old name caused the cp command in the README
  and in the file's own comment to fail with "No such file or directory".
  Update the inline comment in the file to reflect the new name.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant