Created
October 14, 2019 17:06
-
-
Save matheusnascgomes/b981f3469339ecfcb43f3ba189f96e07 to your computer and use it in GitHub Desktop.
Running postgres on 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
version: '3.7' | |
services: | |
postgres: | |
image: postgres:10.10-alpine | |
container_name: postgres | |
ports: | |
- 5432:5432 | |
volumes: | |
- ./postgres-data:/var/lib/postgresql/data | |
restart: always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment