dbmate/docker-compose.yml

24 lines
452 B
YAML
Raw Normal View History

version: '2.1'
services:
dbmate:
build: .
volumes:
- .:/go/src/github.com/amacneil/dbmate
depends_on:
mysql:
condition: service_healthy
postgres:
condition: service_healthy
mysql:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: root
healthcheck:
test: ["CMD", "mysqladmin", "status", "-proot"]
postgres:
image: postgres
healthcheck:
test: ["CMD", "pg_isready"]