Created
October 21, 2019 16:44
-
-
Save Firefishy/c6ba34c1eab11d5c3426137011d4869a to your computer and use it in GitHub Desktop.
PostgreSQL docker-compose managing a data volume
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' | |
services: | |
db: | |
image: postgres:9 | |
volumes: | |
- db-data:/var/lib/postgresql/data | |
volumes: | |
db-data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment