Skip to content

Instantly share code, notes, and snippets.

@douglasmiranda
Last active August 29, 2015 14:21
Show Gist options
  • Save douglasmiranda/1cb52a3cbee987987511 to your computer and use it in GitHub Desktop.
Save douglasmiranda/1cb52a3cbee987987511 to your computer and use it in GitHub Desktop.
Docker - Data container for postgresql
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