Skip to content

Instantly share code, notes, and snippets.

@t18n
Created October 18, 2024 12:33
Show Gist options
  • Save t18n/42ff507743a7cab31e45081f18ce434a to your computer and use it in GitHub Desktop.
Save t18n/42ff507743a7cab31e45081f18ce434a to your computer and use it in GitHub Desktop.
Postgres DB local docker-compose.yml
version: '3.9'
services:
db:
# Docs: https://hub.docker.com/_/postgres
image: postgres:16.4-alpine3.20
restart: always
# Drizzle postgresql://myuser:Secret@1234@localhost:5432/mydb
environment:
- POSTGRES_USER=myuser
- POSTGRES_PASSWORD=Secret@1234
- POSTGRES_DB=mydb
ports:
- '5432:5432'
volumes:
- ./.docker/postgres:/var/lib/postgresql/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment