GithubHelp home page GithubHelp logo

docker-python's Introduction

Docker Exploration

I'm using Docker at ReRent, but I've never taken the time to set it up and really understand what its all about. In this repo, I'm going to follow a tutorial found here so I can get a better understanding of how to use Docker.

After completion here's what I've learned.

Docker must be running: Unfortunately, when I first started to get this working I was getting ConnectionError: ('Connection aborted.', ConnectionRefusedError(61, 'Connection refused')) which was very frustrating because I was literally following a tutorial. After some research and some thinking, I realized the docker app must be running.... ๐Ÿคฆ

.env files need to be 'imported' to docker builds: Early on with Django apps, I realized they would expose the Django SECRET_KEY on original setup. I normally hide those using something like python-dotenv or pipenv. Unfortunately in my docker builds, they weren't being picked up. I got around this by passing varibles from .env into docker-compose.yml.

In conclusion:

I've now got a base django app running at localhost:2000 connected to a PSQL DB through a docker container! While not feeling like a docker pro yet, I have successfully set up a container, hidden some important environmental vars, and have a better understanding of how to use docker and why to use it. Hopefully I find some new uses for it in the near future.

docker-python's People

Contributors

mikez321 avatar

Watchers

James Cloos 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.