[DOCKER] Build a Django development environment with Doker Toolbox

Introduction

~~ This article is mainly a memo for building your own Django development environment, so please understand that there are many points that cannot be reached. As the title suggests, here's a summary of the steps to build a Django development environment using Docker Toolbox. ~~

I wrote it on the blog in a more understandable way, so please have a look there. URL ⇒ https://ryuusan.com/django2/

docker official website

1. Introduced Docker Toolbox

Fold it here. (Don't write)

2. Build a Django development environment

Prepare 3 files referring to Create Django development environment with Docker and perform Docker-compose up -d. This article also explains database initialization, etc., and I was very grateful.

3. The problem was from here! !!

I don't know if it's only for this environment, but for some reason it's a storm of section refused. I couldn't access [localhost: 8000](http: // localhost: 8000) or 0.0.0.0:8000. Of course, curl doesn't work either.

Solution

The solution was to access docker with the assigned IP address. In other words, I was able to access with http: //'machine IP address': 8000. If it is a default machine, it should appear when you first launch it. Also, if you want to check the IP address, it should come out if you google, so if you do not know, please try google.

4. Conclusion

I was worried about this for about 3 hours ... I hope it will benefit me in the future and someone who has fallen into a situation similar to me.

Postscript Error resolution

"Error: Database is uninitialized and superuser password is not specified." Encountered during docker-compose up. Solved by this article. I wonder if the postgresql password is required.

Recommended Posts

Build a Django development environment with Doker Toolbox
[Python] Build a Django development environment with Docker
Build a development environment with Poetry Django Docker Pycharm
Easily build a development environment with Laragon
Build a Django development environment with Docker! (Docker-compose / Django / postgreSQL / nginx)
[Memo] Build a development environment for Django + Nuxt.js with Docker
[DynamoDB] [Docker] Build a development environment for DynamoDB and Django with docker-compose
Build a C language development environment with a container
Build Django + NGINX + PostgreSQL development environment with Docker
Build the fastest Django development environment with docker-compose
Quickly build a Python Django environment with IntelliJ
Build a Django development environment using pyenv-virtualenv on Mac
Build a machine learning application development environment with Python
Build a Django environment for Win10 (with virtual space)
Build a web application with Django
Build a Go development environment with VS Code's Remote Containers
Build a comfortable development environment with VSCode x Remote Development x Pipenv
How to build a python2.7 series development environment with Vagrant
Create a Todo app with Django ① Build an environment with Docker
Build a Tensorflow environment with Raspberry Pi [2020]
Build a Fast API environment with docker-compose
[Linux] Build a jenkins environment with Docker
Build a python virtual environment with pyenv
Build a modern Python environment with Neovim
[Linux] Build a Docker environment with Amazon Linux 2
I made a development environment for Django 3.0 with Docker, Docker-compose, Poetry
Development digest with Django
Build a WardPress environment on AWS with pulumi
Build Python development environment with Visual Studio Code
Build a Django environment on Raspberry Pi (MySQL)
Go (Echo) Go Modules × Build development environment with Docker
Build a python environment with ansible on centos6
Start Django in a virtual environment with Pipenv
Create a python3 build environment with Sublime Text3
Build a Python development environment on your Mac
[Memo] Build a virtual environment with Pyenv + anaconda
Build a virtual environment with pyenv and venv
Build a Kubernetes environment for development on Ubuntu
Build a Python environment with OSX El capitan
Build a Minecraft plugin development environment in Eclipse
I tried to build a Mac Python development environment with pythonz + direnv
[Memo] Django development environment
Build a mruby development environment for ESP32 (Linux)
Build a Python machine learning environment with a container
Build a Python development environment on Raspberry Pi
Build a python execution environment with VS Code
Steps to build a Django environment with Win10 WSL Ubuntu18.04 + Anaconda + Apache2
Get a quick Python development environment with Poetry
Build a data analysis environment that links GitHub authentication and Django with JupyterHub
Build a TensorFlow development environment on Amazon EC2 with command copy and paste
Build a local development environment with WSL + Docker Desktop for Windows + docker-lambda + Python
Build a GVim-based Python development environment on Windows 10 (3) GVim8.0 & Python3.6
Build a python virtual environment with virtualenv and virtualenvwrapper
Build a local development environment for Laravel6.X on Mac
Build a python environment for each directory with pyenv-virtualenv
Create a python development environment with vagrant + ansible + fabric
Build a GVim-based Python development environment on Windows 10 (1) Installation
How to build a Django (python) environment on docker
I want to easily build a model-based development environment
Build a Python development environment on Mac OS X
Build a Python virtual environment using venv (Django + MySQL ①)