The Wikilink tool is currently deployed via Docker Compose. We would like to move to Docker Swarm as the means by which the tool is deployed.
We set up the Staging environment for the Wikilink tool with Docker Swarm earlier in the year, but didn't migrate this to the Production server. The steps for deploying via Docker Swarm are documented at https://github.com/WikipediaLibrary/externallinks/wiki/Staging, along with information about how this integrates with GitHub Actions.
Upgrading the Production server to use Docker Swarm is the next step. This will have the additional benefit of helping with T250084, and help us automate deployments.
Steps:
- stop eventstream and nginx containers on production (eventstream was dead already)
- backup current production database, pull a copy down to my local machine
- shutdown current production instance
- delete any instances besides current production and staging instances
- create a new production instance
- go through the server setup steps
- upload backup to new server
- restore the backup
- update proxy in horizon
Acceptance criteria
- Production server is live, deployed with Docker Swarm