Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 606 Bytes

README.md

File metadata and controls

27 lines (23 loc) · 606 Bytes

Docker files (tested on Windows 10)

Contains: python 3.10.2 alpine, Django 3.2.13

Project structure

  • app/
  • .dockerignore
  • Dockerfile
  • requirements.txt
  • docker-compose.yml

"app/" directory may contain created Django project files.

To build an image and start a container run this commands:

docker build . 
docker-compose build 

If you do not have any Django project created, run:

docker-compose run web django-admin startproject example .

Where "example" - name of the Django project will be created in "app" directory.

Finally, run the container.

docker-compose up