GitHub
github.com › felipewom › docker-compose-postgres
GitHub - felipewom/docker-compose-postgres: Docker-Compose with PostgreSQL for local development ready to use · GitHub
May 16, 2026 - It means that everytime you will re-build your Postgres Docker Compose, these same data will be used for the current project. To do that, you can add the database section in the services node of your Docker Compose. # The `volumes` tag allows us to share a folder with our container # Its syntax is as follows: [folder path on our machine]:[folder path to retrieve in the container] volumes: # In this example, we share the folder `db-data` in our root repository, with the default PostgreSQL data path # It means that every time the repository is modifying the data inside # of `/var/lib/postgresql/data/`, automatically the change will appear in `db-data` # You don't need to create the `db-data` folder.
Starred by 213 users
Forked by 52 users
GitHub
github.com › asaikali › docker-compose-postgres
GitHub - asaikali/docker-compose-postgres: Developer friendly docker-compose Postgres Setup · GitHub
Docker Compose v2.23.1+ supports inline config files using the top-level configs section with a content field. This lets you define small configuration files directly inside compose.yaml instead of maintaining separate files on disk. Compose mounts the content as a read-only file inside the container at the path specified by target. configs: postgres_init: content: | CREATE DATABASE demo2; \c demo2 CREATE EXTENSION vector; pgadmin_servers: content: | { "Servers": { "1": { "Name": "Docker Compose", "Group": "Servers", "Port": 5432, "Username": "postgres", "Host": "postgres", "SSLMode": "prefer", "MaintenanceDB": "postgres", "PassFile": "/tmp/pgpassfile" } } }
Starred by 79 users
Forked by 29 users
Languages Shell 70.8% | Java 29.2%
Install Postgres Using Docker Compose | Docker | Postgres - YouTube
06:17
How to create a docker-compose setup with PostgreSQL and pgAdmin4 ...
05:16
Setting up Docker Compose with Postgres - YouTube
28:34
Docker-Compose | Dockerizing pgAdmin and Postgres - Volumes and ...
18:40
Docker Compose | How to configure PostgreSQL or MySQL database ...
21:42
How to create a volume in Docker-Compose for a PostgreSQL database ...
GitHub
github.com › khezen › compose-postgres › blob › master › docker-compose.yml
compose-postgres/docker-compose.yml at master · khezen/compose-postgres
Postgresql & pgadmin4 powered by compose. Contribute to khezen/compose-postgres development by creating an account on GitHub.
Author khezen
GitHub
github.com › gaelgthomas › docker-compose-with-postgresql
GitHub - gaelgthomas/docker-compose-with-postgresql: A Docker-Compose file with PostgreSQL ready to use. · GitHub
Starred by 28 users
Forked by 18 users
Languages Shell
GitHub
github.com › khezen › compose-postgres
GitHub - khezen/compose-postgres: Postgresql & pgadmin4 powered by compose · GitHub
docker-compose · Clone or download this repository · Go inside of directory, cd compose-postgres · Run this command docker-compose up -d · This Compose file contains the following environment variables: POSTGRES_USER the default value is ...
Starred by 1.3K users
Forked by 776 users
Docker
hub.docker.com › _ › postgres
postgres - Official Image | Docker Hub
# Use postgres/example user/password credentials services: db: image: postgres restart: always # set shared memory limit when using docker compose shm_size: 128mb # or set shared memory limit when deploy via swarm stack #volumes: # - type: tmpfs # target: /dev/shm # tmpfs: # size: 134217728 # 128*2^20 bytes = 128Mb environment: POSTGRES_PASSWORD: example adminer: image: adminer restart: always ports: - 8080:8080 Copy
GitHub
github.com › APSL › docker-postgres › blob › master › docker-compose.yml.example
docker-postgres/docker-compose.yml.example at master · APSL/docker-postgres
Docker image for postgresql: configure with enviroment variables, postgis and wal-e - docker-postgres/docker-compose.yml.example at master · APSL/docker-postgres
Author APSL
GitHub
github.com › noveogroup-amorgunov › docker-compose-postgres
GitHub - noveogroup-amorgunov/docker-compose-postgres: Example of using postgres into docker
#!/bin/sh -e psql --variable=ON_ERROR_STOP=1 --username "postgres" <<-EOSQL CREATE ROLE events WITH LOGIN PASSWORD 'events'; CREATE DATABASE "events-api" OWNER = events; GRANT ALL PRIVILEGES ON DATABASE "events-api" TO events; EOSQL · Edit exported port in docker-compose.yml (if you want):
Starred by 8 users
Forked by 3 users
Languages Shell 100.0% | Shell 100.0%
GitHub
github.com › sameersbn › docker-postgresql › blob › master › docker-compose.yml
docker-postgresql/docker-compose.yml at master · sameersbn/docker-postgresql
PostgreSQL: restart: always · image: sameersbn/postgresql:15-20230628 · ports: - "5432:5432" environment: - DEBUG=false · · - DB_USER= - DB_PASS= - DB_NAME= - DB_TEMPLATE= · - DB_EXTENSION= ·
Author sameersbn
GitHub
github.com › alexeagleson › docker-node-postgres-template › blob › master › docker-compose.yml
docker-node-postgres-template/docker-compose.yml at master · alexeagleson/docker-node-postgres-template
An example configuration of a fullstack Node app with PostgreSQL using Docker Compose - docker-node-postgres-template/docker-compose.yml at master · alexeagleson/docker-node-postgres-template
Author alexeagleson
GitHub
github.com › dantonnoriega › example-build-postgres-database-with-docker
GitHub - dantonnoriega/example-build-postgres-database-with-docker: An example that shows two approaches — using docker-compose and/or a shell script — to build a small Postgres database.
❯ basename $(pwd) example-build-postgres-database-with-docker ❯ tree -L 2 . ├── R │ └── _transform-fred_epi_wide_to_long.r ├── README.md ├── _create-docker_postgres_db.sh ├── data │ ├── fred_cpi_1956_2023.csv │ ├── fred_cpi_descriptions.csv │ └── fredgraph.csv ├── docker-compose.yml └── sql └── init-db.sql 4 directories, 8 files
Author dantonnoriega
GitHub
github.com › asaikali › docker-compose-postgres › blob › master › README.md
docker-compose-postgres/README.md at master · asaikali/docker-compose-postgres
Docker Compose v2.23.1+ supports inline config files using the top-level configs section with a content field. This lets you define small configuration files directly inside compose.yaml instead of maintaining separate files on disk. Compose mounts the content as a read-only file inside the container at the path specified by target. configs: postgres_init: content: | CREATE DATABASE demo2; \c demo2 CREATE EXTENSION vector; pgadmin_servers: content: | { "Servers": { "1": { "Name": "Docker Compose", "Group": "Servers", "Port": 5432, "Username": "postgres", "Host": "postgres", "SSLMode": "prefer", "MaintenanceDB": "postgres", "PassFile": "/tmp/pgpassfile" } } }
Author asaikali
GitHub
github.com › bezkoder › docker-compose-spring-boot-postgres
GitHub - bezkoder/docker-compose-spring-boot-postgres: Docker Compose Spring Boot and Postgres example - Dockerize and connect Spring Boot to PostgreSQL · GitHub
Docker Compose Spring Boot and Postgres example - Dockerize and connect Spring Boot to PostgreSQL - bezkoder/docker-compose-spring-boot-postgres
Starred by 21 users
Forked by 9 users
Languages Java 97.7% | Dockerfile 2.3%
GitHub
github.com › performiq › postgres-docker-compose
GitHub - performiq/postgres-docker-compose: Docker compose setup for postgres (now 16.1) · GitHub
Docker compose setup for postgres (now 16.1). Contribute to performiq/postgres-docker-compose development by creating an account on GitHub.
Author performiq
GitHub
github.com › temporalio › docker-compose › blob › main › docker-compose-postgres.yml
docker-compose/docker-compose-postgres.yml at main · temporalio/docker-compose
Temporal docker-compose files. Contribute to temporalio/docker-compose development by creating an account on GitHub.
Author temporalio
GitHub
gist.github.com › onjin › 2dd3cc52ef79069de1faa2dfd456c945
example docker compose for postgresql with db init script · GitHub
Is there way to update my sql script and then update existing image, without data loss? for example I need to add trigger for existing postgres image... Hi, initdb.sh scripts are called only if there is no database set, so if you need to migrate current database it's better to run this sql migrations from psql cli for already created databases, and initdb.sh/ scripts will be run for new clean instances. ... FYI: do not pass the host (localhost) in the initialization script or you'll likely to encounter an error about not being able to connect to database. ... in docker-compose.yml patch /file.sql:/patch/to/docker-entrypoint-initdb.d/ in fact, point the file to the directory hint: remember where the work dir is base on your docker file for the image you are using to compose this container volumes:
GitHub
github.com › alexeagleson › docker-node-postgres-template
GitHub - alexeagleson/docker-node-postgres-template: An example configuration of a fullstack Node app with PostgreSQL using Docker Compose · GitHub
An example configuration of a fullstack Node app with PostgreSQL using Docker Compose - alexeagleson/docker-node-postgres-template
Starred by 114 users
Forked by 57 users
Languages JavaScript 54.1% | HTML 20.7% | Dockerfile 14.8% | CSS 10.4%