Mercurial > gemma
changeset 318:1a2dfd9351e9
Add example configuration and use it in dockerised backend
Besides the documenting effect of an example, using it in a docker
container makes it easier to change configuration via a volume of the
running container.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 02 Aug 2018 12:48:59 +0200 |
parents | 5cb18bedb3a9 |
children | ac760b0f22a9 |
files | Dockerfile example_conf.toml |
diffstat | 2 files changed, 8 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/Dockerfile Thu Aug 02 10:18:25 2018 +0200 +++ b/Dockerfile Thu Aug 02 12:48:59 2018 +0200 @@ -16,16 +16,13 @@ COPY config ./config/ COPY controllers ./controllers/ COPY Makefile ./ +COPY example_conf.toml ./ RUN make gemma && mkdir /opt/bin && mv cmd/gemma/gemma /opt/bin/ EXPOSE 8000 -CMD ["/opt/bin/gemma",\ - "-H", "gemma_db",\ - "-o", "0.0.0.0",\ - "-s", "/tmp/gemma_session.data",\ - "-w", "./web"] +CMD ["/opt/bin/gemma", "-c", "/opt/gemma/example_conf.toml"] # Run with e.g. # docker build -t gemma_backend .