All Projects → kalelc → dockerize-rails-projects

kalelc / dockerize-rails-projects

Licence: other
Different ways to use Docker with Rails Application.

Programming Languages

ruby
36898 projects - #4 most used programming language
HTML
75241 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to dockerize-rails-projects

yabeda-puma-plugin
Collects Puma web-server metrics from puma control panel
Stars: ✭ 62 (+313.33%)
Mutual labels:  puma
puma-status
Command-line tool for puma to display information about running request/process... Fork of https://github.com/dimelo/puma-helper/ in ruby.
Stars: ✭ 108 (+620%)
Mutual labels:  puma
jpl-space-calendar
An app for parsing and publishing the JPL Space Calendar in JSON and ICalendar formats.
Stars: ✭ 13 (-13.33%)
Mutual labels:  puma
puma-deploy
capistrano deploy script for puma with nginx
Stars: ✭ 14 (-6.67%)
Mutual labels:  puma
puma
Meta-programming framework for JavaScript based on LayerD concepts
Stars: ✭ 30 (+100%)
Mutual labels:  puma
rails-puma-ssl
🔐 Easy way to start using SSL in development
Stars: ✭ 38 (+153.33%)
Mutual labels:  puma
sinator
Sinatra application generator
Stars: ✭ 19 (+26.67%)
Mutual labels:  puma
running-redmine-on-puma
running redmine on puma installation tutorial (Ubuntu/MySQL)
Stars: ✭ 20 (+33.33%)
Mutual labels:  puma

Releases

2.0 Docker with docker-compose 3.6 using

Include:

  • Oficial version's images to containers.
  • Use containers like services.
  • Create volumes to use with services.

Build the project

Build puma container. If you want to build an image with a specific environment, is possible pass it by argument.

docker build --build-arg ENVIRONMENT=development -t puma web/.

build nginx container

docker build -t nginx nginx/.

Start containers with docker-compose

docker-compose up

1.0 Docker to Rails using rbenv

Build several containers to run Rails Application, the main features are:

  • Build an own Dockerfile for how to work with Docker.
  • Working with multiples containers using docker-compose.
  • Using links and environment's variables in docker-compose.
  • Persist MySQL data in volumes.

Build the project

Create container only data

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

Start containers with docker-compose

docker-compose up

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].