Open ghost opened 4 years ago
to clear things up
the /etc/hosts entry 127.0.0.1 epplication_app is there to make sure requests on the docker host machine go to the right docker-container (in this case the epplication web app)
epplication-db is the hostname of the postgres db docker-container and the script you are refering to is probably running in one of the docker containers and uses this value to connect to the database.
The message Postgres is unavailable - sleeping is from the docker startup script that is waiting for the docker postgres container to become available. (https://github.com/certat/do-portal/blob/devel/backend/docker_entrypoint.sh#L26)
the problem you are experiencing should be fixed by now. if not please let me know.
Branch master 532dab952d9e4f09ae99826b0b9138a523fcd613
The install documentation says:
https://github.com/certat/do-portal/blob/532dab952d9e4f09ae99826b0b9138a523fcd613/docs/01_INSTALL.md#edit-etchosts-file
whereas the script seems to use
epplication-db
.I guess either the hostname in docker should be fixed (preferred) or the documentation updated