Docker development with Fig. Full blog post at http://chance.io/docker-development-with-fig.
git clone email@example.com:chancefeick/fig_demo.git cd fig_demo
For the services to work together, you'll need to configure a few files in your project. Run the following commands:
cp fig.example.yml fig.yml cp config/database.example.yml config/database.yml cp config/redis.example.yml config/redis.yml
After configuration, run the following commands:
fig build fig run web rake db:create db:migrate
To ensure your environment is setup correctly, run the specs:
fig run web bundle exec rspec
After the tests pass, run the following command:
The app should now be running on port 3000. To view your Docker daemon, run the following command:
After obtaining the IP address, visit
XXX.XXX.XX.XXX:3000 in your browser.
That's it. You've successfully built a modern web stack using Docker and Fig.