From fbe5d99fa018ddc121e63d35a7defa62ac88df68 Mon Sep 17 00:00:00 2001 From: Thibaut Selingue <7049020+thislg@users.noreply.github.com> Date: Fri, 7 Nov 2025 14:20:07 +0100 Subject: [PATCH] docs: update DOCKER_HOST_SUFFIX docs --- README.md | 9 ++++----- UPGRADE.md | 2 +- redis/redisinsight.yml | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 1706c15..8e97977 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,10 @@ cd docker-stack ``` ### Configuration -You also need to set the DOCKER_HOST_SUFFIX env var in your shell - - echo 'export DOCKER_HOST_SUFFIX="eri.lph"' >> ~/.bash_profile +You need to set the `DOCKER_HOST_SUFFIX` env var in your shell, then copy `.env.dist` to `.env`. ```shell +echo 'export DOCKER_HOST_SUFFIX="change_me"' >> ~/.bash_profile cp .env.dist .env docker compose up -d ``` @@ -40,7 +39,7 @@ The message `Login successed` should appear. ./setup.sh ``` -Restart your browsers ! +Restart your browsers! ## The base stack @@ -71,7 +70,7 @@ The repository currently supports these message brokers: [Redisinsight](https://redis.io/insight/) is available: - Add `./redis/redisinsight.yml` to your `.env` - - Got to [redisinsight.${DOCKER_HOST_SUFFIX}.lph](https://redisinsight.${DOCKER_HOST_SUFFIX}.lph/) or [redisinsight.lph](https://redisinsight.lph/) + - Go to `https://redisinsight.${DOCKER_HOST_SUFFIX}` An optional watchtower service is available to update docker images automatically. Add `watchtower.yml` to `COMPOSE_FILE` variable and set a schedule with `WATCHTOWER_SCHEDULE` variable in your `.env` file (default is `0 0 17 * * *`). You should also [login to your docker hub account](https://docs.docker.com/security/for-developers/access-tokens/#create-an-access-token) to prevent rate limit issues. diff --git a/UPGRADE.md b/UPGRADE.md index 859fa64..b4d8480 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -36,7 +36,7 @@ It use docker labels instead of environment vars: web: image: lephare/apache:2.4 environments: - VIRTUAL_HOST: mydomain.nla.lph + VIRTUAL_HOST: mydomain.${DOCKER_HOST_SUFFIX:-local} - HTTPS_REDIRECT: nohttp - VIRTUAL_PORT: 8080 + labels: diff --git a/redis/redisinsight.yml b/redis/redisinsight.yml index c229e0d..66c262d 100644 --- a/redis/redisinsight.yml +++ b/redis/redisinsight.yml @@ -8,7 +8,7 @@ services: - private - public labels: - caddy: 'redisinsight.lph, redisinsight.${DOCKER_HOST_SUFFIX:-local}' + caddy: 'redisinsight.${DOCKER_HOST_SUFFIX:-local}' caddy.tls: internal caddy.reverse_proxy: "{{ upstreams 5540 }}"