-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Upgrading Containers
Henry Oswald edited this page Jun 16, 2016
·
10 revisions
Please make sure to back up all Mongo, Redis and on-disk data before upgrading.
Data stored in Mongodb will be automatically migrated to the latest schemea when upgrading docker releases. This can make downgrades impossible.
It is to test the migration first. This can be done by copying the mongodb database and doing a test run against the copied data.
db.copyDatabase(sharelatex,sharelatex-copy)
# start the container up pointing at the new db
--env SHARELATEX_MONGO_URL=mongodb://dockerhost/sharelatex-copy
To use the new docker container stop and remove the currently running ShareLaTeX container:
$ docker stop sharelatex
$ docker rm sharelatex
Start a new container with the updated version of ShareLaTeX (to upgrade to version 0.2.0 for example):
$ docker run -d -v ~/sharelatex_data:/var/lib/sharelatex --name=sharelatex sharelatex/sharelatex:0.2.0
- Quickstart Guide (Overleaf Toolkit)
- Hardware Requirements
- Database & Dependencies
- Creating and managing users
- General configuration
- Configuring Email
- SSL & Nginx reverse proxy
- Data and Backups
- Configuring Headers, Footers & Logo
- Password Restrictions
- i18n Languages
- Logging
- Common Config Options
- F.A.Q
- Troubleshooting
- Full Project History Migration