Closed PhillipSchr0eder closed 2 months ago
Hi
Have you looked at the docker logs?
And I see in your .env
that the variable DATABASE_URL
is not correctly configured. Replace 127.0.0.1
by database
Hey :)
Thanks for your reply. I have replaced 127.0.0.1
by database
and started the containers again. At first it doesn't worked, but after I pruned all containers, images and volumes and started docker-compose up
a second time, everything works.
Hey everyone!
After checking out this project and running
docker-compose up --build
everything is working fine, which means i can call localhost in my browser and the default symfony page appears. I want to use doctrine in my Project, so i executeddocker exec -it symfony-docker-php-1 bash
followed bycomposer require doctrine
. After that, I have rebootet my docker (docker-compose down
,docker-compose up --build
). From here it is not working any more. the database tries to connect but fails. And because of this situation, the localhost with the default symfony page is not reachable.I don't have changed something manually, this was all done by the scripts I called.
Has anyone an idea, what I should do?
This is my compose.yaml:
compose.override.yaml:
.env:
Dockerfile: