Sign inSign up

onlybelter/django_py35_new

By onlybelter

Updated over 7 years ago

django 1.10 in python 3.5-alphine

Image
0

224

onlybelter/django_py35_new repository overview

This image build on python:3.5-alphine
  • Python v3.5.5
  • The following Python packages were installed:
django==1.10
djangorestframework==3.6.4
django-cors-headers==2.1.0
django-extensions==1.9.0
mysqlclient==1.3.12
djangorestframework-jwt==1.11
Werkzeug==0.12.2
psycopg2
numpy==1.13.1
pandas==0.20.3
matplotlib==2.0.2
Dockerfile:

https://github.com/OnlyBelter/docker-repo/blob/master/metdna/django-py35/Dockerfile

docker-compose.yml:
version: '2.2'

services:
  djangoApp:
    image: onlybelter/django_py35_new
    restart: always
    command: /bin/sh -c "python /code/check_db.py --service-name mysql --ip db --port 3306 &&
                         python manage.py makemigrations &&
                         python manage.py migrate && 
                         addgroup -g 992 -S nginx || true &&
                         adduser -u 996 -S -D -G nginx nginx || true &&
                         uwsgi --ini /code/config/uwsgi/metdna.ini"
    working_dir: /code/web/myApp
    volumes:
      - .:/code
      - /run/uwsgi:/run/uwsgi  # uwsgi unix socket, communicate with nginx
      # - /mnt/data/myApp-upload:/mnt/data/myApp-upload  # for MEDIA_ROOT of django
      - /mnt/local-disk1/myApp-upload:/mnt/data/myApp-upload  # MEDIA_ROOT(where to store uploaded files) of django(local server)
    # - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
Usage:

...

Tag summary

Content type

Image

Digest

Size

171.3 MB

Last updated

over 7 years ago

docker pull onlybelter/django_py35_new