
General
Self-Host PostgreSql Database with Docker
Date Published
Create volume
1docker volume create <volume-name>
Run container
1docker run --name <container-name> -e POSTGRES_PASSWORD=<password> -p 5432:5432 -v <volume-name>:/var/lib/postgresql/data -d postgres
Run PSQL inside the container
1docker exec -it <container-name> psql -U <username>
Related Posts:

General
Git is an essential tool for developers and anyone working on version-controlled projects. Here are 10 common Git commands to get you started...

General
Discover Next.js 15.2 features like error UI, Turbopack, and how to upgrade. Boost your React app in 2025!