docker system prune -a --volumes
.nginx/nginx.conf
.docker volume ls
.postfix/postfix.env
.db/db_conn.env
.prod.env
:
SECRET_KEY
.ADMIN_NAME
, ADMIN_EMAIL
, SERVER_EMAIL
.DBBACKUP_GPG_PASSPHRASE
.docker-compose up --build -d
.docker ps -a
, docker-compose logs -f
.In the nginx container, docker exec -it nginx sh
, run: certbot --nginx -d sharpa.live -d www.sharpa.live --agree-tos -m sharp.imsystem@gmail.com
(persisted in letsencrypt volume).
A new configuration is written in /etc/nginx/nginx
.
Test renewal with certbot renew --dry-run
.
If OK, add the following cronjob: 0 6 * * * certbot renew --post-hook "nginx -s reload"
scripts/gen_pgp_key.py
(persisted in gpginfrastructure volume).rclone config
, select drive, keep default options to do oauth via browser.rclone about "drive:
.run_backup.sh -r
, restore_backup.sh
.run_backup.sh
:
timedatectl set-timezone Europe/Brussels
, then service cron restart
crontab -e
: ```
MAILTO=sharp.imsystem@gmail.com
docker exec -it django-ims bash
, then inside the container python manage.py createsuperuser
.docker-compose up --build -d
, unchanged containers are left unchanged.nginx.conf
changed for an already running application, the update won't be reflected in the containers because of the persistent nginxconf
volume. To update the configuration file, find its location on the host system (inspect) and change it there manually.docker exec nginx "nginx -s reload"
.certbot --nginx -d sharpa.live -d www.sharpa.live --agree-tos -m sharp.imsystem@gmail.com
and choose to reuse the existing certificates (persisted in the letsencrypt volume).gpg --list-keys
gpg --import public.key
.gpg --import private.key
./var/backups/web/
(if not already existent).scripts/restore_backup.sh
.