From 908285eb0a92c23d331306030e7cb1c99049b673 Mon Sep 17 00:00:00 2001 From: justusbunsi Date: Fri, 17 Jun 2022 13:02:26 +0200 Subject: [PATCH] Add documentation for listening port configuration Signed-off-by: Steven Kriegler --- CHANGELOG.md | 10 ++++++++++ Dockerfile | 1 + README.md | 9 +++++++++ 3 files changed, 20 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ab9182b..7224e70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog +## v0.2.1 + +### 🤖 Application + +- Allow configuring listening port + +### 🐳 Docker image + +- Add `GITEA_SQ_BOT_PORT` environment variable + ## v0.2.0 ### 🤖 Application diff --git a/Dockerfile b/Dockerfile index 93bf360..c6f3eec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,6 +41,7 @@ ENV HOME=/home/bot EXPOSE 3000 ENV GIN_MODE "release" ENV GITEA_SQ_BOT_CONFIG_PATH "/home/bot/config/config.yaml" +ENV GITEA_SQ_BOT_PORT "3000" VOLUME ["/home/bot/config/"] RUN ["chmod", "+x", "/usr/local/bin/docker-entrypoint.sh"] diff --git a/README.md b/README.md index be3fcb3..d030330 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,15 @@ See [config.example.yaml](config/config.example.yaml) for a full configuration s ## Installation +Supported environment variables for application runtime configuration: + +| Environment Variable | Purpose | +|-----------------------------|---------------------------------| +| `GITEA_SQ_BOT_PORT` | Port the bot will listen on | +| `GITEA_SQ_BOT_CONFIG_PATH` | Full path to configuration file | + +For detailed information, use the `--help` flag. + ### Docker Create a directory `config` and place your [config.yaml](config/config.example.yaml) inside it. Open a terminal next to this directory