.env.sample tidy-up suggestions #8

Open
opened 2026-04-06 02:56:27 +00:00 by 3wordchant · 0 comments
Owner
  1. APP_URL could be set in compose.yml to https://${DOMAIN} if it never needs to be separate to DOMAIN, or in .env.sample if it needs to remain possible to configure it separately
  2. DB_CONNECTION, DB_PORT, DB_HOST, DB_USERNAME and DB_DATABASE can be moved to compose.yml because the database with the default settings will always be available; if it should be possible to connect to a separate MySQL server then it might be better to have a compose.external-db.yml or something, and move those settings to the end of the .env.sample.
1. `APP_URL` could be set in `compose.yml` to `https://${DOMAIN}` if it never needs to be separate to `DOMAIN`, or in `.env.sample` if it needs to remain possible to configure it separately 2. `DB_CONNECTION`, `DB_PORT`, `DB_HOST`, `DB_USERNAME` and `DB_DATABASE` can be moved to `compose.yml` because the database with the default settings will always be available; if it should be possible to connect to a separate MySQL server then it might be better to have a `compose.external-db.yml` or something, and move those settings to the end of the `.env.sample`.
Sign in to join this conversation.