Sign inSign up

justdomepaul/migration

By justdomepaul

Updated over 7 years ago

This is build from https://github.com/golang-migrate/migrate cli tool.

Image
0

465

justdomepaul/migration repository overview

Usage

set compose volume, config file and migrations folder
    volumes:
      - ${PWD}/migrations:/migrations

if you need link to another compose's service container, create outer_net, and set external property. set compose network and use it

     networks:
       output_net:
 networks:
  output_net:
    external: true
command
help
$ docker-compose run --rm migration
create
$ docker-compose run --rm migration create -ext sql -dir ./migrations $@

Tag summary

Content type

Image

Digest

Size

34.6 MB

Last updated

over 7 years ago

docker pull justdomepaul/migration