Skip to content

Instantly share code, notes, and snippets.

@alexproca
Last active August 29, 2015 14:24
Show Gist options
  • Save alexproca/839b15dba3f27c2f3dc7 to your computer and use it in GitHub Desktop.
Save alexproca/839b15dba3f27c2f3dc7 to your computer and use it in GitHub Desktop.
Docker compose for databases
postgresql:
image: postgres:9.4
volumes_from:
- postgres
ports:
- "127.0.0.1:5432:5432"
hostname: postgres
restart: always
tty: true
mysql:
image: mysql:5.6
volumes_from:
- mysql-server
ports:
- "127.0.0.1:3306:3306"
hostname: mysql
restart: always
tty: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment