Code Monkey home page Code Monkey logo

dk-decent-container's Introduction

decent-container

So This is it, the famed container.

It's currently in a bit of a .... fluid state.

I will need some assistance in cleaning up where files are, how the service starts etc, please clone this, work out where things are supposed to be, and let me know!

application < All live code should go here The application uses gunicorn and is listening on decentcontainer_application_1:5000

nginx < all webserver / proxy / load balancing and other fancy stuff goes here

The nginx server is purely there for proxy purposes and is listening on: decentcontainer_nginx_1:8080 & decentcontainer_nginx_1:5000

postgres < the database goes here

The DB server is listening on decentcontainer_db_1:5432

voat < any new code from Cights repo, please clone it to here and then copy it to application to make it live

(messy I know, but until we have a rolling lifescycle and we are updating the container, it's the only solution I have)

#Do not rename decent-container unless you want to have a sad day and break all of the containers ;)

The networking is fairly straight forward:

Docker will run it's own internal networking, so it will do this: docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 0902c910e2f0 decentcontainer_nginx "nginx -g 'daemon ..." 38 minutes ago Up 16 minutes 80/tcp, 443/tcp, 0.0.0.0:8880->8080/tcp decentcontainer_nginx_1 8ca5a49b7cbc decentcontainer_application "/application/bin/..." 38 minutes ago Restarting (0) 2 minutes ago decentcontainer_application_1 9436be128216 postgres:9.6.1-alpine "/docker-entrypoin..." 52 minutes ago Up 17 minutes 0.0.0.0:5432->5432/tcp decentcontainer_db_1

Each name is a hostname that resolves to an internal IP address

https://docs.docker.com/engine/userguide/networking/

This will show you the networks docker has created:

docker network ls

If you want to "login" into a running container

docker attach {insert container name here}

or

docker exec -it {insert ner ID here} {input shell or a single UNIX command here}

nginx container only has sh postgres has full bash and gunicorn is currently toasted until we can get the python stuff running smooth.

dk-decent-container's People

Contributors

ckreon avatar mountainfury avatar

Watchers

 avatar  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.