21 lines
1 KiB
Plaintext
21 lines
1 KiB
Plaintext
# --- Database -------------------------------------------------------------
|
|
# Connection string used by the app, drizzle-kit, and the seed script.
|
|
# Matches the Postgres service in docker-compose.yml.
|
|
DATABASE_URL=postgresql://blog:blog@localhost:5434/blog
|
|
|
|
# Host port that docker-compose publishes Postgres on (container port 5432).
|
|
POSTGRES_PORT=5434
|
|
|
|
# --- Initial administrator --------------------------------------------------
|
|
# Read by `npm run db:seed`; only a scrypt hash of the password is stored.
|
|
# Re-run the seed after changing these to update the stored credentials.
|
|
ADMIN_USERNAME=admin
|
|
ADMIN_PASSWORD=change-me-please
|
|
|
|
# --- Test databases (optional overrides) ------------------------------------
|
|
# Both databases are created automatically by docker/initdb on the first
|
|
# `docker compose up`. Unit/integration tests use TEST_DATABASE_URL and the
|
|
# Playwright suite uses E2E_DATABASE_URL; both are wiped on every run.
|
|
TEST_DATABASE_URL=postgresql://blog:blog@localhost:5434/blog_test
|
|
E2E_DATABASE_URL=postgresql://blog:blog@localhost:5434/blog_e2e
|