Giter Site home page Giter Site logo

otto-dock's Introduction

Otto-Dock(er)

This is a simple repo to get you started testing and running Multiple Services & 2 Express Apps in a local environment using docker.

Docker Services

Current Services ( Image Name )

  • Nginx - nginx_service

  • Express ( 2 instances FE & BE ) - be_express_service & fe_express_service

  • MySQL - mysql_db_service

  • Redis - redis_cache_service

Configurations .env make sure to update the locations of CODEBASES. You can update other configurations in this file.

NGINX_CODEBASE_DIR=~/Projects/otto-dock/apps/nginx_service/www/html
NGINX_CONF=~/Projects/otto-dock/apps/nginx_service/conf.d
FE_EXPRESS_CODEBASE_DIR=~/Projects/otto-dock/apps/fe_express_service
BE_EXPRESS_CODEBASE_DIR=~/Projects/otto-dock/apps/be_express_service

Start Docker, build images from docker-compose.yml

docker-compose up

All Docker Containers will be run from on window

Screen Shot 2019-12-02 at 6 54 01 PM

Stop Docker, you should be able to ctrl + c

docker-compose down

Check if Images are Running

docker ps

Screen Shot 2019-12-02 at 7 08 13 PM

To ssh into a container, Example Nginx

docker exec -t -i nginx_service sh

Folder Structure

Apps will conain all SRC code to run each service.

Docker will contain the service along with the Dockerfile to build an image.

Redis & MySQL images will be built from Docker Hub

└── apps
│   └── be_express_service
│   └── fe_express_service
│   └── be_express_service
│   └── nginx_service
│   └── simple_express
|
└── docker
│   └── be_express_service
│     └── Dockerfile
│   └── fe_express_service
│   └── nginx_service
|
|   .env
|   docker-compose.yml

Express Services

There will be two services available to test out.

  • FrontEnd/Clientside (fe_express_service) - This is a NextJS/React app for rendering front end components and layouts.

  • BackEnd/API (be_express_service) - This will be a Express server for logging in and hitting api endpoints.

apps/simple_express is just an app to run outside Docker, to test API's and Express

Nginx

Will be used as a proxy service for Node/Express Services.

Resources

supertest

otto-dock's People

Contributors

ottoinfo avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.