Expose WP_DEBUG, WP_DEBUG_LOG/DISPLAY, E_ALL + display_errors when WORDPRESS_DEBUG=1 in wordpress/.env. Default off. For short-lived diagnosis of opaque HTTP 500; disable after fix. Made-with: Cursor
23 lines
1.1 KiB
Bash
23 lines
1.1 KiB
Bash
# WordPress Database credentials
|
|
# Copy to .env and fill in secure values — never commit .env to git
|
|
#
|
|
# If db_data already exists, MYSQL_* must match the password used at first init.
|
|
# Changing MYSQL_PASSWORD here without aligning MariaDB (or wiping db_data after backup) causes
|
|
# «Error establishing a database connection» (WordPress still points at db:3306 but auth fails).
|
|
MYSQL_ROOT_PASSWORD=change_this_root_password
|
|
MYSQL_PASSWORD=change_this_wordpress_password
|
|
|
|
# WordPress admin (used by setup scripts only)
|
|
WP_ADMIN_USER=admin
|
|
WP_ADMIN_EMAIL=[email protected]
|
|
# WP_ADMIN_PASSWORD — set in vault; do not store here
|
|
|
|
# Public URL WordPress uses for redirects (wp-login, wp-admin). On the LXC behind NPM use HTTPS + host:
|
|
# WORDPRESS_PUBLIC_URL=https://newsproject.bitreport.pt
|
|
# Local Docker-only dev (browser → localhost:8080): omit or use http://localhost:8080
|
|
WORDPRESS_PUBLIC_URL=http://localhost:8080
|
|
|
|
# Emergency triage on the LXC only: WORDPRESS_DEBUG=1 → WP_DEBUG + display_errors + debug.log
|
|
# (remove or set 0 after fixing — do not leave on in production). See docker-compose.yml WORDPRESS_CONFIG_EXTRA.
|
|
# WORDPRESS_DEBUG=0
|