Skip to content

🚀 Rails application development and deployment with docker.

Notifications You must be signed in to change notification settings

f-mer/docker-rails-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-rails-example

Rails application development and deployment with docker.

Development

Start the services:

$ docker-compose up -d

Create the database:

$ docker-compose run --rm web bin/rails db:create

Production

Deploy the application via stack.yml into a swarm cluster.

Try in PWD

or

deploy the services via the CLI

$ docker stack deploy -c stack.yml rails

After deploying the application with PWD or manually the database has to be created.

$ cname=$(docker ps --format '{{.Names}}' | grep 'web' | head -1)
$ docker exec $cname bin/rails db:create

Make sure everything works as expected by visiting the /heatlh endpoint and checking the container health via docker ps.

See also

About

🚀 Rails application development and deployment with docker.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published