In this episode we will learn how to setup an application environment (single-node stack) in a cloud using docker machine and deploy rails API application with docker & docker compose.
Rails API application that we are going to deploy is the one I wrote in episode #4 ( • Add pagination to an API - REST APIs ... ).
Following are the steps to walk through,
1. Prepare the Rails API application for deployment
2. Create a repository on canister.io for the API application images
3. Create a docker compose for the new deployment environment
4. Provision a new app server machine (droplet) on digital-ocean using docker machine
5. Deploy with docker compose and test
------------------------------------------------------------------------
Source code:
https://github.com/ec-codecasts/e5-de...
------------------------------------------------------------------------
Related episodes:
Episode #3 - APIs on Rails: Create Rails API-only application
• REST JSON APIs on Rails: Create Rails...
Episode #4 - APIs on Rails: Add pagination to an API
• Add pagination to an API - REST APIs ...
------------------------------------------------------------------------
Commands & README:
https://github.com/ec-codecasts/e5-de...
------------------------------------------------------------------------
Author:
Chandra Shettigar | Producer of www.devteds.com | Software Engineer with over decade of experience writing softwares - web & mobile apps.
https://devteds.com, / shettigarc , / shettigar
------------------------------------------------------------------------