Created
August 14, 2024 15:59
-
-
Save berk-karaal/a03895fa54f2bc94f46b815664021fd6 to your computer and use it in GitHub Desktop.
postgres docker compose
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: | |
| postgres: | |
| image: postgres:16-alpine | |
| volumes: | |
| - ./var/db:/var/lib/postgresql/data | |
| ports: | |
| - "5432:5432" | |
| environment: | |
| - POSTGRES_USER=postgres | |
| - POSTGRES_PASSWORD=postgres | |
| - POSTGRES_DB=test_db |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment