Created
February 7, 2023 09:08
-
-
Save Da9el00/ff1d36bf914dc1c6c71aa9d70ac68136 to your computer and use it in GitHub Desktop.
How to create a docker-compose setup with PostgreSQL and 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
version: "3.8" | |
services: | |
db: | |
container_name: postgres_container | |
image: postgres | |
restart: always | |
environment: | |
POSTGRES_USER: root | |
POSTGRES_PASSWORD: root | |
POSTGRES_DB: test_db | |
ports: | |
- "5432:5432" | |
pgadmin: | |
container_name: pgadmin4_container | |
image: dpage/pgadmin4 | |
restart: always | |
environment: | |
PGADMIN_DEFAULT_EMAIL: [email protected] | |
PGADMIN_DEFAULT_PASSWORD: root | |
ports: | |
- "5050:80" |
thanks a ton man works perfect
I tried many things but this actually works, thanks a lot!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks man