##// END OF EJS Templates
core: various changes
core: various changes

File last commit:

r80:8b381946
r80:8b381946
Show More
migration-to-docker.md
45 lines | 1.3 KiB | text/x-minidsrc | MarkdownLexer
/ docs / migration-to-docker.md

Quick list of action to migrate old pre 4.28.0 installer based releases to docker stack

1. Decide on components use

By default RhodeCode stack uses Redis and Postgres.
We recommend using those in Docker as things like
backup/restore are much easier, and possible to run by our installer

If you plan to use your own redis or DB, uncomment/disable those services in file:
docker-compose-services.override.yaml

Select your DB type by commenting postgres or mysql db in docker-compose-services.override.yaml
For Sqlite, comment out both DB types

2. launch stack based on get started

Run a quick start guide based on ./rccontrol get-started

3. make a db dump

If docker-based DB is selected
Create a database backup from your db type
If you plan to use you old running DB, this step can be ommited

4. restore db

If docker-based DB is selected
Restore the database into docker container running DB

mv repositories data to .custom/storage

mv gists data to .custom/storage

mv artifacts data to .custom/storage

mv tarball cache data to .custom/storage

./rccontrol cli storage

move repos to /vol/repovolume

move artifacts data to /vol/datavolume

move tarballcache data to /vol/datavolume

cp rhodecode.ini to config/_shared/rhodecode.ini

cp vcsserver.ini to config/_shared/vcsserver.ini