Last active
January 25, 2025 06:26
-
-
Save Rizwan-Hasan/08aa22f42f6d79c6feb70a979eb8f23f to your computer and use it in GitHub Desktop.
A docker compose file for spinning up postgresql with pgadmin4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: postgresql-pgadmin4 | |
services: | |
postgresql: | |
container_name: postgresql | |
environment: | |
- PUID=1000 | |
- PGID=1000 | |
- POSTGRES_DB=postgres | |
- POSTGRES_PASSWORD=postgres | |
- POSTGRES_USER=postgres | |
- TZ=Asia/Dhaka | |
hostname: postgresql | |
image: postgres:16 | |
ports: | |
- target: 5432 | |
published: "5432" | |
protocol: tcp | |
restart: unless-stopped | |
volumes: | |
- type: bind | |
source: ./postgresql-pgadmin4/postgresql/data | |
target: /var/lib/postgresql/data | |
privileged: false | |
pgadmin4: | |
container_name: pgadmin4 | |
environment: | |
- PUID=1000 | |
- PGID=1000 | |
- GUNICORN_THREADS=4 | |
- PGADMIN_CONFIG_ENHANCED_COOKIE_PROTECTION=False | |
- [email protected] | |
- PGADMIN_DEFAULT_PASSWORD=12345 | |
- PGADMIN_LISTEN_PORT=5433 | |
- PGADMIN_CONFIG_ENABLE_PSQL=True | |
hostname: pgadmin4 | |
image: dpage/pgadmin4:8 | |
ports: | |
- target: 5433 | |
published: "5433" | |
protocol: tcp | |
restart: unless-stopped | |
volumes: | |
- type: bind | |
source: ./postgresql-pgadmin4/pgadmin4 | |
target: /var/lib/pgadmin | |
privileged: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment