Files
wallabag/.env
Yassine Guedidi 2a21159384 Add .env and .env.test files with DATABASE_URL configuration
Introduce .env with DATABASE_URL defaulting to a local SQLite file and commented-out MySQL and PostgreSQL alternatives for local development. Add .env.test with the test-specific SQLite path and commented alternatives for running the test suite against other databases. Add .env.test.local to .gitignore so per-developer test database overrides are not accidentally committed.
2026-03-19 10:31:44 +01:00

11 lines
517 B
Bash

# Default: SQLite — no server required
DATABASE_URL=sqlite:///%kernel.project_dir%/data/db/wallabag.sqlite
# MariaDB / MySQL
#DATABASE_URL=mysql://root:root@127.0.0.1:3306/wallabag?charset=utf8mb4
# MariaDB / MySQL (Docker Compose)
#DATABASE_URL=mysql://root:wallaroot@mariadb:3306/wallabag?charset=utf8mb4
# PostgreSQL
#DATABASE_URL=postgresql://wallabag:wallapass@127.0.0.1:5432/wallabag?charset=utf8
# PostgreSQL (Docker Compose)
#DATABASE_URL=postgresql://wallabag:wallapass@postgres:5432/wallabag?charset=utf8