
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 docker …
postgresql - How do I add a postgres database and user from a docker ...
Mar 18, 2025 · How do I add a postgres database and user from a docker container using docker-compose?
postgresql - How to persist data in a dockerized postgres database ...
My docker compose file has three containers, web, nginx, and postgres. Postgres looks like this: postgres: container_name: postgres restart: always image: postgres ...
Docker compose, Postgres/PGAdmin setup - Stack Overflow
Dec 30, 2023 · I think there are several problems with the docker-compose-postgres repository that make it not a great example, starting with the fact that it us using bind mounts for storage rather than …
postgresql - postgres with docker compose gives FATAL: role "root" …
Feb 12, 2020 · I'm trying to create a simple demo with postgres on a local windows machine with docker desktop. This is my yaml docker compose file named img.yaml: version: '3.6' services: postgres …
POSTGRES_PASSWORD_FILE no working on docker compose
Feb 9, 2024 · I am working with the following yaml and postgres_password_file, but it is not working. I have checked that the file inside container is correct and user/permissions of the file are correct. …
Keycloak and postgres docker compose - Stack Overflow
Mar 4, 2024 · I built this compose stack to run keycloak and associate a postgres DB: volumes: postgres_data: driver: local services: postgres: image: postgres:14.1-alpine volumes: - path
docker-compose .env not loading/applied to container
Jun 14, 2025 · POSTGRES_ENGINE=django.db.backends.postgresql POSTGRES_USER=admin POSTGRES_PASSWORD=admin123456 POSTGRES_DB=demoapp PG_HOST=postgresdb …
postgresql - Where is the Postgres username/password being created …
Nov 15, 2016 · DB_NAME=postgres DB_USER=postgres DB_PASS=postgres My question is when is the postgres user and password being set? If I run this docker-compose everything works, meaning …
Safe ways to specify postgres parameters for healthchecks in docker …
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. docker …