Configuration of components#

Selecting a database type#

By editing .custom/docker-compose-services.override.yaml

Set replicas to 1 for chosen DB type, or both to 0 if you want to run an external DB inside your host system.

## This is a final override file for services stack
## Add your own customizations

## docker network create -d overlay lb-net
services:

  # default Postgresql DB
  database:
    # to disable set replicas to 0
    deploy:
      replicas: 1

  # MySQL DB
  database-mysql:
    # to disable set replicas to 0
    deploy:
      replicas: 1

Disable Redis#

By editing .custom/docker-compose-services.override.yaml

## This is a final override file for services stack
## Add your own customizations

## docker network create -d overlay lb-net
services:

  redis:
    # to disable set replicas to 0
    deploy:
      replicas: 0

Disable ElasticSearch#

ElasticSearch is used by default as a search engine. Elasticsearch is powerful search engine, however it generally requires a lot of resource to be functional.

In case the plan is to use CE edition, or the machine is restricted with resource ElasticSearch can be disabled.

By editing .custom/docker-compose-services.override.yaml

## This is a final override file for services stack
## Add your own customizations

## set elasticsearch replicas to 0 to stop running it together with services stack.
services:

  elasticsearch:
    # to disable set replicas to 0
    deploy:
      replicas: 0

Elasticsearch is used by default as a search engine inside the rhodecode.ini configuration. So this needs to be also adjusted.

By editing config/_shared/rhodecode.ini

Turn of ElasticSearch and enable Whoosh

; ElasticSearch (EE edition only). Requires Elastic Search cluster
; to be installed, and running. Recommended for large amount of repositories
#search.module = rc_elasticsearch
#search.location = http://elasticsearch:9200
; specify Elastic Search version, 6 for latest or 2 for legacy
#search.es_version = 6

; WHOOSH Backend, doesn't require additional services to run
; it works good with few dozen repos
search.module = rhodecode.lib.index.whoosh
search.location = /var/opt/rhodecode_data/index