Last active
August 29, 2015 14:24
-
-
Save alexproca/839b15dba3f27c2f3dc7 to your computer and use it in GitHub Desktop.
Docker compose for databases
This file contains hidden or 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
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