This repository has been created for Docker based Django development environment.
- Install Docker on your OS environment https://docs.docker.com/engine/installation/
cd
somewheremkdir
somename andcd
somenamegit clone https://github.com/kneeprayer/ddpn.git
cp tmp.env .env
and fix .env file.chmod 755 bin/*.sh
bin/create-server.sh
- if you want to login to django images, do
sudo docker exec -i -t django /bin/bash
- Start Docker Images
bin/start-server.sh
- Stop Docker Images
bin/stop-server.sh
- Make Docker Images
bin/create-server.sh
- Delete Docker Images
bin/delete-server.sh
- If you want to delete MySQL database file also, you should remove data directory to use
rm -rf posgres/data/
- If you want to delete MySQL database file also, you should remove data directory to use
If you want to change app or db version, you should fix docker-compose.yml file.
image: posgres:alpine -> image: posgres:9.6.5-alpine
You can check docker version on the Docker Hub.
django : https://hub.docker.com/_/python/
Nginx : https://hub.docker.com/_/nginx/
Postgresql : https://hub.docker.com/_/postgres/
This project is licensed under the terms of the MIT license.