- Adjust variables in .env file
- run
docker-compose build
- run
docker-compose up
- Access it on http://localhost:8000
Define extra requirements on src/requirements.txt and restart the container to have them installed.
~/django-base$ docker-compose exec app venv/bin/python src/manage.py <command>
- eg.
~/django-base$ docker-compose exec app venv/bin/python src/manage.py createsuperuser
- Access it on http://localhost:9090
- app container is based on python:3.5 offical container (a Debian 8)
- db container uses the official image of mysql:5 (also a Debian 8)
- Python interpreter is 3.5.3
- Python packages: ** Django==1.10.5 ** mysqlclient==1.3.9
- MySQL Server 5.7.17 (charset UTF-8 Unicode (utf8))
- PHPMyAdmin version is 4.6.5.2 (on PHP 4.6.28)