Created
June 8, 2021 09:07
-
-
Save Majramos/52b2add2939b01886fe99ea38a02cef7 to your computer and use it in GitHub Desktop.
local database setup with docker
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:13.2 | |
container_name: postgres | |
restart: unless-stopped | |
environment: | |
- POSTGRES_USER=local_pg | |
- POSTGRES_PASSWORD=local_pg | |
- POSTGRES_DB=local_pg | |
ports: | |
- "5432:5432" | |
volumes: | |
- ./postgres:/var/lib/postgresql/data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment