502 error developing with Docker locally #1806
-
I am trying to create a very basic local Docker development environment following the instructions here https://bref.sh/docs/local-development Here are my files docker-compose.yml
public/index.php
composer.json
The container starts fine (although the handler seems to be empty?)
Making a request in the browser to localhost:8000 returns the following output in the browser
The docker log then contains the following after the request in the browser
Does anybody have any ideas as to how I go about debugging / fixing this? Thanks in advance :) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
I was able to reproduce with your example: |
Beta Was this translation helpful? Give feedback.
-
Another peculiar behaviour is that if I start the container, and then visit http://localhost:8000/index.php the browser save file dialog will open and if you proceed, will save the index.php file which is as per my code |
Beta Was this translation helpful? Give feedback.
-
Ok, I have it working! I had to start the container, then log onto the running container and run composer install manually. Is this supposed to be the case, or should it run composer install as part of the container build process? |
Beta Was this translation helpful? Give feedback.
Oh, there's no build process. You have to install Bref, that's part of the "Getting started" guides.