Setup PostgreSQL & phpPgAdmin with Docker Compose ( psql cli + examples )

Опубликовано: 16 Март 2026
на канале: Jason Cheung
2,206
18

How to setup Postgres and phpPgAdmin with docker compose. Quick tutorial that also includes some example psql commands to access the container.

Update 2022:
Don't use port "10080:80" as web browsers now block this port. Instead use something like "8080:80" and access the web client with localhost:8080. Same goes for using the port in the command line. I've updated the github code to reflect this.

0:00 - Create Project
0:15 - Create docker-compose.yml
1:08 - Start the containers
1:23 - Use psql to create data
1:39 - Use phpPgAdmin to view data
2:15 - Stop containers

Code: https://github.com/Jasoncheung94/yout...

––––––––––––––––––––––––––––––
Track: Moment — Amine Maxwell [Audio Library Release]
Music provided by Audio Library Plus
Watch:    • Moment — Amine Maxwell | Free Background M...  
Free Download / Stream: https://alplus.io/moment
––––––––––––––––––––––––––––––