Created
October 18, 2024 12:33
-
-
Save t18n/42ff507743a7cab31e45081f18ce434a to your computer and use it in GitHub Desktop.
Postgres DB local docker-compose.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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