Last active
August 29, 2015 14:21
-
-
Save douglasmiranda/1cb52a3cbee987987511 to your computer and use it in GitHub Desktop.
Docker - Data container 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
dbdata: | |
image: <IMAGE> | |
volumes: | |
- /var/lib/postgresql | |
command: ['bash', '-c', 'echo "postgresql data container for db"; trap "exit 0" SIGTERM; while true; do sleep 5; done'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment