Personal website hosted on agimpel.com, powered by Django and deployed with Docker.
After cloning the repository and installing the required Python packages, create the database with
python manage.py makemigrations && python manage.py migrateThen create an admin account via
python manage.py createsuperuserSet up environment variables with
export DJANGO_KEY="YOUR_KEY"
export DJANGO_ALLOWED_HOSTS="localhost"Finally start the development server with
python manage.py runserverand navigate to the admin panel at localhost:8000/admin.
It is recommended to set up a database using the local install (see above) before proceeding to deploy. In any case, this setup assumes the presence of a reverse proxy, such as nginx-proxy. First, edit the environment file .env to set up the correct variables. Then, build the Docker container and start the service via docker compose:
docker compose --env-file .env up -dThe initial build will take a few minutes.
