Skip to content

What's the recommended way to configure RESTHeart with docker-compose? #434

Answered by mkjsix
jonathanthiry asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

In this case, I suggest adopting a SNAPSHOT version of RESTHeart built from master branch. Our Docker images are available at https://hub.docker.com/r/softinstigate/restheart-snapshot

Then you can use the environment directive in your docker-compose.yml to override the new RHO environment variable. This would require a docker-compose restart command.

The reason is that RESTHeart v6 allows overriding configuration options with an environment variable only if the parameters are a primitive type.

Taking into account the following configuration snipped:

mongo-uri: mongodb://127.0.0.1
mongo-mounts:
  - what: restheart
    where: /

The env var RH_MONGO_URI overrides the parameter mongo-uri.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jonathanthiry
Comment options

Answer selected by jonathanthiry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants