summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorDaniel Wiesenberg <weasy@hotmail.de>2021-03-16 09:14:11 +0100
committerDaniel Wiesenberg <weasy@hotmail.de>2021-05-22 16:53:48 +0200
commit5a7ccbdfab228daca0ebecf46b9c4372d36faf6a (patch)
tree08f0c8f20e11664f9ccba8f22670a4e3d5c959ac /docker
parentbeb428d8669d509b3199531660a3544ccff69d9a (diff)
downloadconduit-5a7ccbdfab228daca0ebecf46b9c4372d36faf6a.zip
Add CONDUIT_CONFIG to all relevant docker files
And mention that an empty string can be used to configure Conduit purely with env vars.
Diffstat (limited to 'docker')
-rw-r--r--docker/README.md3
-rw-r--r--docker/docker-compose.traefik.yml4
2 files changed, 5 insertions, 2 deletions
diff --git a/docker/README.md b/docker/README.md
index 6bf36f1..499d1ad 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -44,7 +44,8 @@ docker run -d -p 8448:8000 -v ~/conduit.toml:/srv/conduit/conduit.toml -v db:/sr
```
For detached mode, you also need to use the `-d` flag. You also need to supply a `conduit.toml` config file, you can find an example [here](../conduit-example.toml).
-You can pass in more env vars as are shown here, for an overview of possible values, you can take a look at the `docker-compose.yml` file.
+You can pass in different env vars to change config values on the fly. You can even configure Conduit completely by using env vars, but for that you need
+too pass `-e CONDUIT_CONFIG=""` into your container. For an overview of possible values, please take a look at the `docker-compose.yml` file.
If you just want to test Conduit for a short time, you can use the `--rm` flag, which will clean up everything related to your container after you stop it.
diff --git a/docker/docker-compose.traefik.yml b/docker/docker-compose.traefik.yml
index 25497c6..ef14ca9 100644
--- a/docker/docker-compose.traefik.yml
+++ b/docker/docker-compose.traefik.yml
@@ -29,7 +29,9 @@ services:
### Uncomment and change values as desired
# CONDUIT_ADDRESS: 127.0.0.1
# CONDUIT_PORT: 8000
- # CONDUIT_LOG: normal # Available levels are: off, debug, normal, critical
+ # CONDUIT_CONFIG: '/srv/conduit/conduit.toml' # if want to configure purely by env vars, set this to an empty string ''
+ # Available levels are: error, warn, info, debug, trace - more info at: https://docs.rs/env_logger/*/env_logger/#enabling-logging
+ # CONDUIT_LOG: info # default is: "info,rocket=off,_=off,sled=off"
# CONDUIT_ALLOW_JAEGER: 'false'
# CONDUIT_ALLOW_REGISTRATION : 'false'
# CONDUIT_ALLOW_ENCRYPTION: 'false'