Skip to content

Instantly share code, notes, and snippets.

@ferrerluis
Created February 7, 2018 23:03
Show Gist options
  • Select an option

  • Save ferrerluis/90c967aa08fcf64d6678b5ca27ac4520 to your computer and use it in GitHub Desktop.

Select an option

Save ferrerluis/90c967aa08fcf64d6678b5ca27ac4520 to your computer and use it in GitHub Desktop.
Simple docker-compose for multiple test databases
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