I was asked to take a look at and upgrade the existing infrastructure, which was (at the time I started) running on an old version of Dokku on a single server. We upgraded and made changes to the system to allow:
- Automated machine provisioning
- Isolated instances for different environments
- Backup and environment sync
- Upgraded Solr instances
Using Terraform and Ansible, I was able to build a system that allowed us to build machines that were secure and easily deployable to DigitalOcean. Changes and modifications could be tested in separate environments before being deployed to production, allowing flexibility and minimising problems arising from having environment instances on a single machine.