Last active
December 9, 2019 15:52
-
-
Save aleksb86/d2834d78d9f40083affecc78f584f80c to your computer and use it in GitHub Desktop.
Simple compose file for Postgresql
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.7' | |
services: | |
db: | |
image: postgres:12.1-alpine | |
ports: | |
- '5432:5432' | |
volumes: | |
- ./data:/var/lib/postgresql/data | |
environment: | |
- POSTRGES_USER=postgres | |
- POSTGRES_PASSWORD=123456 | |
volumes: | |
data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment