Created
February 7, 2018 23:03
-
-
Save ferrerluis/90c967aa08fcf64d6678b5ca27ac4520 to your computer and use it in GitHub Desktop.
Simple docker-compose for multiple test 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
| version: '3' | |
| services: | |
| postgres: | |
| image: postgres:10.1-alpine | |
| volumes: | |
| - ./data:/var/lib/postgresql/data | |
| ports: | |
| - '5432:5432' | |
| restart: always | |
| mysql: | |
| image: mysql:5.7.21 | |
| environment: | |
| - MYSQL_ROOT_PASSWORD=test_password | |
| volumes: | |
| - ./data:/var/lib/mysql | |
| ports: | |
| - '3306:3306' | |
| restart: always |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment