About 135,000 results
Open links in new tab
  1. Create a postgres database within a docker-compose.yml file

    Jan 26, 2023 · I want to create a postgres database named bank within a docker-compose.yml file just after the postgres container has started but when i run docker-compose --env-file .env -f …

  2. Permission issue with PostgreSQL in docker container

    May 29, 2019 · I'm trying to run a docker image with PostgreSQL that has a volume configured for persisting data. docker-compose.yml version: '3.1' services: db: image: postgres restart: …

  3. Docker wait for postgresql to be running - Stack Overflow

    Then running docker-compose build and docker-compose up will give you the following output: Note how the result of the psql --list command only appears after pg_isready logs …

  4. postgresql - How to persist data in a dockerized postgres …

    My docker compose file has three containers, web, nginx, and postgres. Postgres looks like this: postgres: container_name: postgres restart: always image: postgres ...

  5. postgresql - Where is the Postgres username/password being …

    Nov 15, 2016 · I am using the official postgres image so I believe you have answered my question. So in this docker-entrypoint.sh, what is the username and password being set?

  6. How to use a PostgreSQL container with existing data?

    Feb 28, 2016 · $ docker exec -it $(docker-compose ps -q postgres9 ) psql -Upostgres -c 'drop table beer' Restore our backup (stored on the host) into the Postgres container.

  7. Docker Compose w/ PostgreSQL - psql Password Authentication …

    Oct 24, 2022 · I ran docker compose up command inside the terminal and then after initializing the server and database, I tried to connect to the PostgreSQL using psql -h localhost -U postgres.

  8. Allow docker container to connect to a local/host postgres database

    Jul 6, 2015 · The postgres server is running, and I've edited my pg_hba.conf file to allow connections from a range of IP addresses (172.17.0.0/32). I had previously queried the IP …

  9. Safe ways to specify postgres parameters for healthchecks in …

    Dec 2, 2020 · I'm using secrets to manage username, password, and dbname with a Docker stack using Postgres as a DB. I now want to use the healthcheck feature that Docker provides. …

  10. Configure pgbouncer and postgresql in docker-compose

    How can I apply connection pooling with pgbouncer in my docker-compose file. I don't know if the ConnectionString of my containers are correct or not. postgredb: image: postgres environme...