
General, Self-Host
Riad Boussaid
Self-Host PostgreSql Database with Docker
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
Next.js 15.2 – What’s New and How to Upgrade Next.js 15.2 – What’s New and How to Upgrade Next.js 15.2 – What’s New and How to Upgrade