Adds a second WordPress instance (wordpress-andebol) with its own MariaDB
(db-andebol) on port 8081 to support the andebol.net domain.
New env vars required in .env:
ANDEBOL_MYSQL_ROOT_PASSWORD
ANDEBOL_MYSQL_PASSWORD
ANDEBOL_WORDPRESS_PUBLIC_URL (optional, defaults to http://localhost:8081)
Closes BIT-507 (partial — WP deploy step).
Co-Authored-By: Paperclip <[email protected]>
Compose was stripping PHP $_ variables, breaking wp-config and causing
HTTP 500. Use $$ prefix so literals reach the container (BIT-471).
Made-with: Cursor
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
Preserve X-Forwarded-Proto from the edge proxy in CT nginx so WordPress
sees HTTPS. When WORDPRESS_PUBLIC_URL still defaults to localhost:8080,
derive WP_HOME/WP_SITEURL from Host and forwarded headers for proxied
requests (X-Forwarded-For present). Document behaviour in deployment and
wordpress README.
Made-with: Cursor
Set WP_HOME/WP_SITEURL from WORDPRESS_PUBLIC_URL so login does not redirect
to http://localhost:8080 when using https://newsproject.bitreport.pt.
Trust X-Forwarded-Proto for HTTPS behind NPM. Document in .env.example and
docs/deployment.md checklist.
Refs: BIT-345
Made-with: Cursor
- wordpress/docker-compose.yml: longer db start_period and retries for slow init
- wordpress/README.md: db healthcheck exec step and restart-loop note
- docs/deployment.md: replace stale MySQL 8 snippet with pointer to compose
Co-Authored-By: Paperclip <[email protected]>
Made-with: Cursor