Example of using docker
and docker-compose
for a Rails application with Sidekiq, Redis and PostgreSQL
Run the first-time
script to configure and build the docker containers and to create, migrate and seed the database.
Thereafter, run subsequent-time
.
There is a delay required when starting up the database container, so that Postgres is accessible to the other containers running the application components, so simply running docker-compose up
doesn't work reliably.
MIT License Copyright (c) 2015 Chris Stefano [email protected]