The current Nginx server would benefit from being converted into a Docker container rather than running on bare metal.
Benefits:
- Cut down on sysadmin overhead
- Easily update Nginx by just rebuilding the container using the latest version, no more building from source
- Nginx config can be maintained in version control, rather than only having it on the server
- Configuration can be updated without needing access to the server
- Being able to update/reboot Nginx without needing access to the server directly, only to portainer and the repo
- If a server suddenly dies it’s easy to bring back up entirely, nothing can be lost
- SSL cert configuration/renewal as part of the startup process
- Never manually interact with certbot again
- Better documentation and maintainability as a whole
- More room to experiment/learn without as many risks
- Automation
Work required for completion:
- Creating a repository for maintaining Nginx (private?)
- Setting up a Docker registry to store built images
- Take over https://registry.freeside.co.uk
- Setting up ci/cd for building images
- Setting up the web server as another endpoint on https://portainer.freeside.co.uk
I’m happy to carry out all the work above if it’s agreed upon.