Created
April 13, 2025 16:26
-
-
Save Ruttmann/9148fea78bbd78bd2d9afaefa0539db0 to your computer and use it in GitHub Desktop.
Docker compose: postgresql with pgadmin panel
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
services: | |
database: | |
image: postgres | |
container_name: saas_db | |
restart: unless-stopped | |
environment: | |
POSTGRES_USER: postgresusr | |
POSTGRES_PASSWORD: postgres | |
ports: | |
- 5432:5432 | |
volumes: | |
- postgres:/var/lib/postgresql/data | |
networks: | |
- psql-bridge-net | |
db-adm-panel: | |
image: dpage/pgadmin4 | |
container_name: db_adm_panel | |
restart: unless-stopped | |
environment: | |
PGADMIN_DEFAULT_EMAIL: [email protected] | |
PGADMIN_DEFAULT_PASSWORD: postgres | |
ports: | |
- 15432:80 | |
volumes: | |
- pgadmin:/var/lib/pgadmin | |
networks: | |
- psql-bridge-net | |
volumes: | |
postgres: | |
pgadmin: | |
networks: | |
psql-bridge-net: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment