Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nhatthaiquang-agilityio/docker-django
Deployment Django with Docker
https://github.com/nhatthaiquang-agilityio/docker-django
django django-application docker
Last synced: 19 days ago
JSON representation
Deployment Django with Docker
- Host: GitHub
- URL: https://github.com/nhatthaiquang-agilityio/docker-django
- Owner: nhatthaiquang-agilityio
- Created: 2016-08-30T04:27:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-31T08:12:39.000Z (over 8 years ago)
- Last Synced: 2024-04-16T07:09:37.711Z (9 months ago)
- Topics: django, django-application, docker
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker django
Set up a Django application and development environment using Docker.# Requirements:
+ [Install Docker](https://docs.docker.com/engine/installation/)
+ Ubuntu 14.04# Run command:
+ Build docker:
```
$cd docker-django
$ docker build -t nhatthai/myapp_django .
```+ Run server:
```
$docker run --publish=8001:8000 nhatthai/myapp_django:latest
```+ Running some Django management commands on the Docker host
```
$docker run --rm -i -t --entrypoint=/bin/bash nhatthai/myapp_django:latest
root@a94c8a5eed4a:/srv/myapp# ./manage.py createsuperuser
```+ Check django app:
```
http://localhost:8001
```# Reference:
+ [Django application into Docker container images](http://michal.karzynski.pl/blog/2015/04/19/packaging-django-applications-as-docker-container-images/)
+ [Getting started with Docker, Compose and Django](https://howchoo.com/g/y2y1mtkznda/getting-started-with-docker-compose-and-django)