Skip to content

Configuring Listening Address #619

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
chaddotson opened this issue Oct 16, 2019 · 3 comments
Closed

Configuring Listening Address #619

chaddotson opened this issue Oct 16, 2019 · 3 comments
Labels
question Usability question, not directly related to an error with the image

Comments

@chaddotson
Copy link

I've got a general question about how the scripts for version 11 configure the listen address of 0.0.0.0, it doesn't look like it relies directly on a postgresql.conf file but the Dockerfile does take steps to modify the postgresql.conf.sample file. How are the listening addresses of ipv4 0.0.0.0 and ipv6 :: configured?

@yosifkit
Copy link
Member

We edit postgresql.conf.sample since it is the source of /var/lib/postgresql/data/postgresql.conf when initdb runs.

See also: #105 (comment) and #127.

@wglambert wglambert added the question Usability question, not directly related to an error with the image label Oct 16, 2019
@yosifkit
Copy link
Member

See also the "Database Configuration" on the Docker Hub docs (https://hub.docker.com/_/postgres/ and official-images/docs)

If you are seeing the empty listen_address in the entrypoint, that is just for the temporary server that is started for initial setup and /docker-entrypoint-initdb.d/ scripts

pg_ctl -D "$PGDATA" \
-o "-c listen_addresses=''" \
-w start

@chaddotson
Copy link
Author

Thanks that was a big help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Usability question, not directly related to an error with the image
Projects
None yet
Development

No branches or pull requests

3 participants