Giter VIP home page Giter VIP logo

3mw-services-stack's Introduction

3mw-services-stack

Introduction

This repo holds the outer folder structure of the services used for this app.

The docker-compose file has the services and configurations to run the containers. nginx service is also attached here for proxying through backend and frontend.

Setup

  • clone this repository
git clone https://github.com/leonidguadalupe/3mw-services-stack.git services
  • change directory to services
cd services
  • clone backend repository
git clone https://github.com/leonidguadalupe/3mw-backend-service.git
  • clone frontend repository
git clone https://github.com/leonidguadalupe/3mw-frontend-service.git
  • clone monitoring repository if available
git clone https://github.com/<repo>/3mw-monitoring-service.git
  • build the containers
docker-compose build
  • run docker compose
docker-compose run
  • go to the backend container, cd to django folder and run migrate
docker exec -it -u 0 3mw_services_backend_1 /bin/sh
cd src/3mw_backend_service
python manage.py migrate

and then go to http://localhost

Note: I personally didn't automate this process as it's kinda dangerous to automate the migration process. I believe it is something that should be done manually. However, it all depends on practice and also when we need to do rolling deployment which we really need this kind of automation

Also, there's a big possibility that this will give an error especially if the monitoring service is not yet added. the compose file depends on the monitoring service which will be provided later. By any case that the monitoring service is not available yet, please delete the monitoring service and the depend clause on the docker compose file.

3mw-services-stack's People

Contributors

leoniddev avatar leonidguadalupe avatar

Stargazers

Can Sarıgöl avatar

Watchers

Can Sarıgöl avatar  avatar

Forkers

leoniddev

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.