question:
my set up is very similar, when booting up the container, and logining into psql with username db and host it create a different ip address for the database container every time, in the env of my project id have to constently change this. How could I hardcode localhost in the postgres docker-compose.yaml file, so that when ever i boot up the containers the db container will always host at 127.0.0.1?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
question:
my set up is very similar, when booting up the container, and logining into psql with username db and host it create a different ip address for the database container every time, in the env of my project id have to constently change this. How could I hardcode localhost in the postgres docker-compose.yaml file, so that when ever i boot up the containers the db container will always host at 127.0.0.1?