-
-
Save omer-os/b75e0eae5ab33af2990db02bbe2aeb7b to your computer and use it in GitHub Desktop.
Docker Compose yml file for making postgressql db
This file contains hidden or 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
| # while using with prisma | |
| DATABASE_URL="postgresql://dev:dev@localhost:5433/app" |
This file contains hidden or 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
| 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