database IP is hardcoded
database IP is hardcoded to 172.17.0.1
value.
- https://gitlab.guifi.net/jose.legido/docker-drupal9/-/blob/b89e956e515bfbbbadf8555f6380bbd62d193974/drupalguifi/post_configuration.sh#L5
- https://gitlab.guifi.net/jose.legido/docker-drupal9/-/blob/b89e956e515bfbbbadf8555f6380bbd62d193974/drupalguifi/post_configuration.sh#L14
in fact, this is why is not working on my host
docker enables dns resolution to avoid this problems, so db
works, because it is defined that way in the docker-compose https://gitlab.guifi.net/jose.legido/docker-drupal9/-/blob/b89e956e515bfbbbadf8555f6380bbd62d193974/docker-compose.yml#L5:
root@61feaa734df1:~# getent hosts db | cut -d' ' -f1
172.18.0.2