Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 780 Bytes

README.md

File metadata and controls

29 lines (24 loc) · 780 Bytes

docker-postgres-adminer-goose

Used:

Steps:

  1. Clone the repository

    git clone [email protected]:fpopic/docker-postgres-adminer-goose.git
    cd docker-postgres-adminer-goose
  2. Spin up composed services: postgres, adminer, goose with Dockerfile entrypoint

    docker-compose up --build
  3. Run goose standalone:

    docker-compose run goose status
    docker-compose run goose create <name_of_migration> sql
    # edit db/migrations/<name_of_migration>.sql
    docker-compose run goose up
  4. Check changes in adminer:

    open 'http://localhost:8080/?pgsql=migrations-postgres&username=goose&db=goose&ns=public'