Public Repository

Last pushed: 9 months ago
Short Description
Short description is empty for this repo.
Full Description

Docker Compose

version: '2'

services:

  mysql-db:
    image: mysql
    ports:
      - "3306:3306"
    environment:
      - MYSQL_ROOT_PASSWORD=<password>

  flyway-migrator:
    image: enderozcan/flyway-mysql
    volumes:
      - ./sql:/flyway/sql
    depends_on:
      - mysql-db
    links:
      - mysql-db
    command: flywaymysql_mysql-db_1 <port> <user> <password> <schema>

Run

docker-compose up flyway-migrator

Docker CLI

Run

docker run --rm -v `pwd`/sql:/flyway/sql enderozcan/flyway-mysql <host> <port> <user> <secret> <schema>
Docker Pull Command
Owner
enderozcan