Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
Do not set INDEXER_CONFIG_PATH by default in Dockerfile (#149)
Browse files Browse the repository at this point in the history
This allows the docker image to be configured via env variables instead
of a config file. (When `INDEXER_CONFIG_PATH` is set, the application
will only use the file and will not attempt to read its config from env
vars.) This is useful for environments like Google Cloud Run where it is
simpler to set env vars than to mount a file into the container.
  • Loading branch information
joel-u410 authored Feb 29, 2024
1 parent 8fc06f0 commit 3d4fdec
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ COPY --from=builder /usr/src/namadexer/checksums.json /app

RUN apt-get update && rm -rf /var/lib/apt/lists/*

# default env
ENV INDEXER_CONFIG_PATH "/app/config/Settings.toml"
ENV RUST_LOG "namadexer=debug"
# if you wish to run with a config file, mount it at /app/config/Settings.toml
# and set the env variable INDEXER_CONFIG_PATH to /app/config/Settings.toml

CMD indexer

0 comments on commit 3d4fdec

Please sign in to comment.