Add healthchecks, sprinkle some README

This commit is contained in:
3wc 2022-03-25 22:40:42 +02:00
parent da5fe67e27
commit 5811437aca
2 changed files with 40 additions and 2 deletions

View File

@ -6,8 +6,8 @@
* **Category**: Apps
* **Status**: 0
* **Image**: [`lemmy`](https://hub.docker.com/r/lemmy), 4, upstream
* **Healthcheck**: No
* **Image**: [`lemmy`](https://hub.docker.com/r/dessalines/lemmy) etc., 4, upstream
* **Healthcheck**: Yes
* **Backups**: No
* **Email**: No
* **Tests**: No
@ -22,3 +22,29 @@
* `abra app deploy <app-name>`
For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech).
## Updating `config.hjson`
If you make changes in your environment after deployment, e.g. using
`abra app config <app-name>`, the new settings won't automatically be applied to
your `config.hjson`.
**If you haven't made manual changes to your `config.hjson`**, then delete the
auto-generated `config.hjson`, and let Lemmy auto-generate a new one:
```
abra app run <app-name> app rm /configconfig.hjson
abra app restart <app-name> app
```
**If you made manual changes to your `config.hjson`**, then compare the old and
the new files, and manually merge the changes:
```
abra app run <app-name> app sh
apt update && sudo apt install vim-tiny
diff -ur /config/config.hjson /config/config.hjson.tmpl
vim /config/config.hjson
exit
abra app restart <app-name> app
```

View File

@ -34,6 +34,12 @@ services:
condition: on-failure
labels:
- "coop-cloud.${STACK_NAME}.version="
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8536/api/v3/site"]
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
ui:
image: dessalines/lemmy-ui:0.16.1
@ -45,6 +51,12 @@ services:
- backend
depends_on:
- app
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:1234"]
interval: 30s
timeout: 10s
retries: 10
start_period: 1m
db:
image: postgres:12-alpine