Coder Social home page Coder Social logo

memphis-tools / dockerize_django_app_on_digitalocean Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 1.74 MB

This a dummy working Django project to use for learning purposes. Application is fully deployed on a vm DigitalOcean instance (not "app"). The application is an exercise based on a local development required by a French Python's Developer curriculum (Openclassroom).

Shell 1.76% Dockerfile 1.58% Python 55.45% HTML 38.52% CSS 0.06% JavaScript 0.46% HCL 2.18%
digitalocean-droplets django-project docker postgresql python-3-10 terraform

dockerize_django_app_on_digitalocean's People

Contributors

dependabot[bot] avatar memphis-tools avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

lumunix

dockerize_django_app_on_digitalocean's Issues

0002-Set a strict service create order (when droplet is turned of and then turned on)

As a learning purposes we have a simple iterating execution creation:

  • Postgresql host is the first created with a default ip: 172.17.0.2
  • Nginx host is the second created with a default ip: 172.17.0.3
  • Web host (Gunicorn and Django) is the last one create, with a default ip: 172.17.0.4

When the "droplet" (DigitalOcean virtual machine) is turned of and then turned on, we can observe changes. Example the Nginx service get 172.17.0.2.
When the swarm is destroy and recreated (at each ci/cd exectuion) there is no such issue.

0003-Setup a mount strategy to allow dynamic secret creation

Once the "droplet" (DigitalOcean virtual machine) is created, we have to create 2 text files relative to secrets. We should not create them manually.

As the docker secrets are created at the deploy stage of the ci-cd pipeline, the droplet should mount a file system (for example).

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.