Create a directory local
and .env
file inside
mkdir ./local
touch ./local/.env
.env file should set the following variables:
OIDC_CLIENT_ID=""
OIDC_CLIENT_SECRET=""
OIDC_CRYPTO_PASSPHRASE=""
LDAP_SESSION_CRYPTO_PASSPHRASE=""
SECRET_KEY=""
APACHE_CERTIFICATE_SIGNING_REQUEST_SUBJECT=""
Make sure *.sh files have executable permission, use the following command to give them executable permission
chmod +x *.sh
./run.sh
If you want to run the docker containers in detach mode, Add
-d
option to the docker-compose command inrun.sh
To clean the production files and directories, run
./clean.sh
This is a docker project to create a container with Python3, Django and Apache2. All configurations, along with a sample django project are cerated.
-
docker-compose up
Starts the container named django-apache2
-
Browse to http://localhost:8500
A sample employee list page is displayed.
See Dockerfile and docker-compose.yml for configuration details.
See blog post and this video