My personal site project.
Based on Wagtail
git clone https://github.com/paulwinex/paulwinex-com.git
cd paulwinex.com
Create .env
file
Change values if needed.
tee -a .env << END
APP_NAME=pw
APP_PORT=8080
DATA_DIR=./data
ORIGIN=https://mydomain.com
END
docker-compose build
docker-compose up -d
docker exec pw-app ./manage.py migrate
docker exec pw-app ./manage.py collectstatic --noinput
docker exec -it pw-app ./manage.py createsuperuser
Edit config configs/app.nginx
. Change paths to data dir
Link config
ln -s ./configs/app.nginx /etc/nginx/sites-enabled/app.nginx
Check
sudo nginx -t
Reload Nginx
sudo nginx -s reload
apt install -y nginx certbot python3-certbot-nginx
Create certificates
certbot