Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zerossb/django-docker
Image made to be able to create and run Django projects in a simple and 100% modifiable way.
https://github.com/zerossb/django-docker
Last synced: 8 days ago
JSON representation
Image made to be able to create and run Django projects in a simple and 100% modifiable way.
- Host: GitHub
- URL: https://github.com/zerossb/django-docker
- Owner: zerossB
- Created: 2019-11-21T01:06:55.000Z (about 5 years ago)
- Default Branch: develop
- Last Pushed: 2019-12-09T00:34:14.000Z (about 5 years ago)
- Last Synced: 2024-11-07T15:53:33.412Z (about 2 months ago)
- Language: Shell
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Django Development Container
Image made to be able to create and run Django projects in a simple and 100% modifiable way.
## Simple Tags
- [`master`](https://github.com/zerossB/django-docker/blob/master/2/alpine/Dockerfile)
- [`develop`](https://github.com/zerossB/django-docker/blob/develop/2/alpine/Dockerfile)
- [`develop-3`](https://github.com/zerossB/django-docker/blob/develop/3/alpine/Dockerfile)## How to use?
Simply build the image using `docker build -t docker-django`.
and run it with all needed parameter:
```bash
docker run --rm \
-v ./:/code \
-e ZONEINFO=America/Sao_Paulo \
-e DJANGO_VERSION=2.2.7\
-e PROJECT_NAME=myproject
django-docker
```With Docker-Compose
```yaml
version: "3"
services:
db:
image: postgres
ports:
- "5432:5432"
web:
image: zerossb/django-docker:2-alpine
restart: always
environment:
ZONEINFO: "America/Sao_Paulo"
DJANGO_VERSION: 2.2.8
PROJECT_NAME: myapp
ports:
- 8000:8000
volumes:
- .:/code
```That's it.
## Environment variables
This image uses environment variables for configuration.
Available variables | Default value| Description
--- | --- | ---
ZONEINFO | America/Sao_Paulo | [Django Time Zone](https://docs.djangoproject.com/en/2.2/topics/i18n/timezones/)
DJANGO_VERSION | 2.2.8 | Django Version
PROJECT_NAME | myapp | Project Name## Functionalities
- Creates the project automatically.
- Install all requirements.txt dependencies
- 100% customizable## License
This git repo is under the GNU V3 license. Find it here.