git clone https://github.com/medicharlachiranjeevi/phusion-passenger-docker-rails.git
for Docker https://docs.docker.com/v17.12/install/
for Docker-compose https://docs.docker.com/compose/install/#upgrading
GIT_URL=https://<user>:<password>@<gitserver>/<path>/<repo>.git
RUBY_VER=2.0.0
change db-name,db-password,SECRET_KEY in .env file
SECRET_KEY_BASE=3eaf1ffa19d5bfd3ac139af1f4c4b9f3;
POSTGRES_DB=postgres
POSTGRES_USER=postgres
POSTGRES_PASSWORD=chiru
docker-compose build
docker-compose up -d
#On start up the following actions will be executed:
- database migrations
- databse seeds
Custom start up scripts can be added to `/ect/my_init.d` and will be executed during container start up.
docker-compose exec web bunlde
docker-compose exec web rake db:migrate
#For logs
docker-compose logs web