Public | Automated Build

Last pushed: 2 years ago
Short Description
Docker compose, rails and mysql containers.
Full Description

Docker with Rails App

Project to deploy apps with rails.

Features:

  • Rbenv.
  • Mysql.
  • Redis.
  • memcached.
  • Nginx.
  • Puma.
  • Foreman.

Build the project

Create container only data

docker run -v /var/lib/mysql --name mysql_data busybox true

Start containers with docker-composer

docker-compose up

Preview

Database config

Create database

docker-compose run web bundle exec rake db:create

Create tables

docker-compose run web bundle exec rake db:migrate

Import data test

docker-compose run web bundle exec rake db:seed
Docker Pull Command
Owner
shilpiagrawal