Skip to content

mkdevprogects/migrations

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Functionality: data schema management.

Running:

  • Clone app: git clone git@github.com:mkdevprogects/base.git
  • cd base/
  • Set the environment variables:
  PGUSER  
  PGPASSWORD  
  ENVPOSTGRES_DB  
  VOLUMES  
  ENVPGDATA  
  DB_HOST  
  DB_PG_PORT  
  DB_REDIS_HOST  
  DB_REDIS_PORT  
  HUTCH_MQ_HOST  
  HUTCH_MQ_API_HOST

or

  1. Set the environment variables for all apps:
PGUSER
DB_HOST
PGPASSWORD
ENVPOSTGRES_DB
ENVPGDATA
  1. Clone app: git clone git@github.com:mkdevprogects/base.git
  2. cd base/
  3. docker-compose up -d
  4. cd ..
  5. Clone app: git clone git@github.com:mkdevprogects/migrations.git
  6. cd migrations/
  7. Create database: rake db:create
  8. Run migrations database: rake db:migrate
  9. Open tools for work with DB, connect to DB app and see database schema

Example environment variables:

PGUSER=postgres
PGPASSWORD=12345
ENVPOSTGRES_DB=mkdev_dev
VOLUMES=/Users/user_name/pg_data
ENVPGDATA=/Users/user_name/pg_data
DB_HOST=postgres

for running only this app use DB_HOST=localhost

DB_PG_PORT=5432
Set this environment variables if you run all apps:
DB_REDIS_HOST=redis
DB_REDIS_PORT=6379
HUTCH_MQ_HOST=rabbitmq
HUTCH_MQ_API_HOST=rabbitmq

About

Data schema management of the "Medicine" project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published