##// END OF EJS Templates
rcstack: 5.0.5 EULA added
rcstack: 5.0.5 EULA added

File last commit:

r276:b0620a6a
r279:19ce5c41
Show More
migration-to-docker.rst
100 lines | 2.5 KiB | text/x-rst | RstLexer
/ docs / source / migration / migration-to-docker.rst

Migration to Docker

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, disable those services in :file:`.custom/docker-compose-services.override.yaml` by setting replicas: 0

TODO: SEE COMPONENT CONFIGURATION

Select your DB type by commenting postgres or mysql db in :file:`.custom/docker-compose-services.override.yaml` For Sqlite, disable both DB types.

Note

Selecting your own Redis, DB etc would require pointing to those instance inside .ini config files. By default rcstack is configured to talk to docker based addresses of those services.

2. Copy over your old configuration into new shared config dir

cp rhodecode.ini to config/_shared/rhodecode_old.ini
cp vcsserver.ini to config/_shared/vcsserver_old.ini

Then compare the new files e.g :file:`rhodecode.ini` with :file:`rhodecode_old.ini` and adjust accordingly, most important are location of storages/redis/db connection urls.

3. launch stack based on get started

Run an init command & launch the full stack

./rcstack init
./rcstack stack all up -d

4. make a db dump

If docker-based DB is selected, otherwise this step can be skipped.

create a backup of your existing database, so it can be migrated to docker instance. If you plan to use you old running DB, this step can be omitted. Adjust rhodecode.ini to point your docker rhodecode to old DB

5. 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
+++++

#. ./rcstack 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
+++++