Skip to content

chore: fix Docker build context and dev environment setup#98

Closed
Olayiwolaaa wants to merge 1 commit into
Flutterwave:devfrom
Olayiwolaaa:chore/docker-dev-setup
Closed

chore: fix Docker build context and dev environment setup#98
Olayiwolaaa wants to merge 1 commit into
Flutterwave:devfrom
Olayiwolaaa:chore/docker-dev-setup

Conversation

@Olayiwolaaa

@Olayiwolaaa Olayiwolaaa commented Jun 17, 2026

Copy link
Copy Markdown

Summary

Updates the Docker development environment to work with the repo root as
build context and fixes compatibility with Apple Silicon Macs.

Changes

docker-compose.yml

  • Changed build context from . to .. with .docker/php/Dockerfile
  • Added volume mount (..:/var/www/html) for live reloading during development
  • Upgraded MySQL from 5.7 to 8.0 (5.7 is EOL since Oct 2023 and has no ARM image)
  • Added platform: linux/amd64 for cross-architecture compatibility
  • Added MySQL environment config (MYSQL_ROOT_PASSWORD, MYSQL_DATABASE)

php/Dockerfile

  • Updated COPY paths to reflect repo root context (./app/composer.*composer.*, ./app .. .)
  • Updated xdebug.ini COPY path to .docker/php/conf.d/xdebug.ini

Note

CI failures are unrelated to this PR — SIGNOZ_API_KEY and SLACK_WEBHOOK_URL secrets are not available on fork PRs.

- Change build context to repo root, update COPY paths in Dockerfile
- Mount repo root as volume for live reloading in dev
- Upgrade MySQL 5.7 to 8.0 (5.7 has no ARM image, EOL since Oct 2023)
- Add platform: linux/amd64 for cross-architecture compatibility
- Add MySQL root password and database environment config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants