Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand All @@ -40,7 +39,7 @@ The message `Login successed` should appear.
./setup.sh
```

Restart your browsers !
Restart your browsers!

## The base stack

Expand Down Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion redis/redisinsight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"

Expand Down