Skip to content

Instantly share code, notes, and snippets.

@omer-os
Created March 20, 2026 20:34
Show Gist options
  • Select an option

  • Save omer-os/b75e0eae5ab33af2990db02bbe2aeb7b to your computer and use it in GitHub Desktop.

Select an option

Save omer-os/b75e0eae5ab33af2990db02bbe2aeb7b to your computer and use it in GitHub Desktop.
Docker Compose yml file for making postgressql db
# while using with prisma
DATABASE_URL="postgresql://dev:dev@localhost:5433/app"
services:
db:
image: postgres:16-alpine
restart: unless-stopped
ports:
- "5433:5432"
environment:
POSTGRES_USER: dev
POSTGRES_PASSWORD: dev
POSTGRES_DB: app
volumes:
- pgdata:/var/lib/postgresql/data
volumes:
pgdata:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment