switch to upstream image #3

Merged
p4u1 merged 1 commits from upstream-beta into main 2025-02-26 15:57:07 +00:00
4 changed files with 57 additions and 8 deletions

View File

@ -1,4 +1,6 @@
TYPE=uptime-kuma
COMPOSE_FILE="compose.yml"
LETS_ENCRYPT_ENV=production
DOMAIN=uptime-kuma.example.com
@ -8,4 +10,6 @@ DOMAIN=uptime-kuma.example.com
SECRET_DB_PASSWORD_VERSION=v1
SECRET_DB_ROOT_PASSWORD_VERSION=v1
LETS_ENCRYPT_ENV=production
Review

hmm, I don't really know the use of this line but it's in all recipes (in fact it comes with the recipe template), why are we removing it here?

hmm, I don't really know the use of this line but it's in all recipes (in fact it comes with the recipe template), why are we removing it here?
Review

I'm not sure about the details, but this relates to this configuration for the reverse-proxy traefik: https://git.coopcloud.tech/coop-cloud/traefik/src/branch/master/traefik.yml.tmpl#L94
Would be good to restore this line

I'm not sure about the details, but this relates to this configuration for the reverse-proxy traefik: https://git.coopcloud.tech/coop-cloud/traefik/src/branch/master/traefik.yml.tmpl#L94 Would be good to restore this line
Review

I think the proposed move seems fine to me

I think the proposed move seems fine to me
Review

I just moved it to the top of the file

I just moved it to the top of the file
## Enable mariadb
#COMPOSE_FILE="$COMPOSE_FILE:compose.mariadb.yml"

View File

@ -22,3 +22,10 @@
* `abra app deploy <app-name>`
For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech).
## MariaDB
By default uptime-kuma uses a sqlite database. It is possible to switch to a mariadb:
```
#COMPOSE_FILE="$COMPOSE_FILE:compose.mariadb.yml"
```

43
compose.mariadb.yml Normal file
View File

@ -0,0 +1,43 @@
---
version: "3.8"
services:
app:
secrets:
- db_password
environment:
- UPTIME_KUMA_GH_REPO=louislam:uptime-kuma
- UPTIME_KUMA_DB_TYPE=mariadb
- UPTIME_KUMA_DB_HOSTNAME=db
- UPTIME_KUMA_DB_PORT=3306
- UPTIME_KUMA_DB_NAME=kuma
- UPTIME_KUMA_DB_USERNAME=kuma
- UPTIME_KUMA_DB_PASSWORD_FILE=/run/secrets/db_password
depends_on:
- db
db:
image: mariadb:11.5
environment:
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db_root_password
- MYSQL_PASSWORD_FILE=/run/secrets/db_password
- MYSQL_USER=kuma
- MYSQL_DATABASE=kuma
volumes:
- mariadb:/var/lib/mysql
networks:
- internal
secrets:
- db_password
- db_root_password
volumes:
mariadb:
secrets:
db_password:
external: true
name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION}
db_root_password:
external: true
name: ${STACK_NAME}_db_root_password_${SECRET_DB_ROOT_PASSWORD_VERSION}

View File

@ -3,7 +3,7 @@ version: "3.8"
services:
app:
image: git.coopcloud.tech/coop-cloud-chaos-patchs/uptime-kuma:latest
image: louislam/uptime-kuma:2.0.0-beta.1
volumes:
- data:/app/data
secrets:
@ -13,12 +13,7 @@ services:
- proxy
environment:
- UPTIME_KUMA_GH_REPO=louislam:uptime-kuma
- UPTIME_KUMA_DB_TYPE=mariadb
- UPTIME_KUMA_DB_HOSTNAME=db
- UPTIME_KUMA_DB_PORT=3306
- UPTIME_KUMA_DB_NAME=kuma
- UPTIME_KUMA_DB_USERNAME=kuma
- UPTIME_KUMA_DB_PASSWORD_FILE=/run/secrets/db_password
- UPTIME_KUMA_DB_TYPE=sqlite
depends_on:
- db
configs: