Compare commits

..
Author SHA1 Message Date
Ammar Hussein 78421d9c5a release 4.0.0+2024.06.67 2026-10-23 18:45:57 -07:00
Ammar Hussein 5b6328b68f chore: update image tags 2026-10-23 18:39:10 -07:00
Ammar Hussein 77659e75c3 add backup support 2026-10-23 18:37:30 -07:00
kawaiipunk ebe01e00cc chore: publish 3.2.1+2024.06.66 release 2026-10-22 16:36:00 +01:00
KawaiiPunk 73787fef14 Merge pull request 'chore(deps): update ghcr.io/mailu/postfix docker tag to v2024.06.66' (#23) from renovate/ghcr.io-mailu-postfix-2024.x into main
Reviewed-on: https://git.coopcloud.tech/coop-cloud/mailu/pulls/23
2026-10-22 15:29:47 +00:00
KawaiiPunk c029f4e65a Merge pull request 'chore(deps): update ghcr.io/mailu/nginx docker tag to v2024.06.66' (#22) from renovate/ghcr.io-mailu-nginx-2024.x into main
Reviewed-on: https://git.coopcloud.tech/coop-cloud/mailu/pulls/22
2026-10-22 15:29:40 +00:00
KawaiiPunk 6d2bdf5303 Merge pull request 'chore(deps): update ghcr.io/mailu/dovecot docker tag to v2024.06.66' (#20) from renovate/ghcr.io-mailu-dovecot-2024.x into main
Reviewed-on: https://git.coopcloud.tech/coop-cloud/mailu/pulls/20
2026-10-22 15:29:32 +00:00
KawaiiPunk 5042e50f55 Merge pull request 'chore(deps): update ghcr.io/mailu/rspamd docker tag to v2024.06.66' (#24) from renovate/ghcr.io-mailu-rspamd-2024.x into main
Reviewed-on: https://git.coopcloud.tech/coop-cloud/mailu/pulls/24
2026-10-22 15:29:23 +00:00
KawaiiPunk 789a9d0f42 Merge pull request 'chore(deps): update ghcr.io/mailu/admin docker tag to v2024.06.66' (#19) from renovate/ghcr.io-mailu-admin-2024.x into main
Reviewed-on: https://git.coopcloud.tech/coop-cloud/mailu/pulls/19
2026-10-22 15:29:09 +00:00
Renovate Bot 872e098bb9 chore(deps): update ghcr.io/mailu/rspamd docker tag to v2024.06.66 2026-10-22 14:15:46 +00:00
Renovate Bot 57fadc2ea4 chore(deps): update ghcr.io/mailu/postfix docker tag to v2024.06.66 2026-10-22 14:15:44 +00:00
Renovate Bot 0f5ee292df chore(deps): update ghcr.io/mailu/nginx docker tag to v2024.06.66 2026-10-22 14:15:41 +00:00
Renovate Bot 74e8c1a3cc chore(deps): update ghcr.io/mailu/dovecot docker tag to v2024.06.66 2026-10-22 14:15:39 +00:00
Renovate Bot 2b721698b0 chore(deps): update ghcr.io/mailu/admin docker tag to v2024.06.66 2026-10-22 14:15:36 +00:00
6 changed files with 63 additions and 9 deletions
+2
View File
@@ -198,3 +198,5 @@ REJECT_UNLISTED_RECIPIENT=
# NOTE(3wc): Other values are not supported, as compose.yml does not contain # NOTE(3wc): Other values are not supported, as compose.yml does not contain
# configuration for them. Pull requests welcome! # configuration for them. Pull requests welcome!
DB_FLAVOR=sqlite DB_FLAVOR=sqlite
ENABLE_BACKUPS=true
+2 -2
View File
@@ -4,10 +4,10 @@ Coöp Cloud + [Mailu][Mailu] = 🥳
<!-- metadata --> <!-- metadata -->
* **Category**: Apps * **Category**: Apps
* **Status**: 1, alpha * **Status**: 2, beta
* **Image**: [`mailu/*`](https://hub.docker.com/r/mailu/), 4, upstream * **Image**: [`mailu/*`](https://hub.docker.com/r/mailu/), 4, upstream
* **Healthcheck**: No * **Healthcheck**: No
* **Backups**: No * **Backups**: Yes
* **Email**: N/A * **Email**: N/A
* **Tests**: No * **Tests**: No
* **SSO**: No * **SSO**: No
+1
View File
@@ -1,3 +1,4 @@
export CERTDUMPER_POST_VERSION=v1 export CERTDUMPER_POST_VERSION=v1
export POSTFIX_OVERRIDE_VERSION=v17 export POSTFIX_OVERRIDE_VERSION=v17
export SENDER_LOGIN_VERSIONS=v2 export SENDER_LOGIN_VERSIONS=v2
export BACKUP_SQLITE_VERSION=v1
+36
View File
@@ -0,0 +1,36 @@
#!/usr/bin/env python3
import os
import sqlite3
from pathlib import Path
source_path = Path("/data/main.db")
backup_dir = Path("/data/backup")
temporary_path = backup_dir / "main.db.tmp"
backup_path = backup_dir / "main.db"
os.umask(0o077)
backup_dir.mkdir(mode=0o700, parents=True, exist_ok=True)
temporary_path.unlink(missing_ok=True)
try:
# Read-only mode prevents silently creating an empty source database.
source = sqlite3.connect(
f"{source_path.as_uri()}?mode=ro",
uri=True,
timeout=60,
)
destination = sqlite3.connect(temporary_path)
try:
source.backup(destination, pages=256, sleep=0.1)
result = destination.execute("PRAGMA integrity_check").fetchall()
if result != [("ok",)]:
raise RuntimeError(f"SQLite integrity check failed: {result}")
finally:
destination.close()
source.close()
# Only publish a fully written, verified snapshot.
os.replace(temporary_path, backup_path)
print(f"SQLite backup ready: {backup_path}", flush=True)
except Exception:
temporary_path.unlink(missing_ok=True)
raise
+21 -7
View File
@@ -55,7 +55,7 @@ x-environment:
services: services:
app: app:
image: ghcr.io/mailu/nginx:2024.06.61 image: ghcr.io/mailu/nginx:2024.06.67
logging: logging:
driver: json-file driver: json-file
networks: networks:
@@ -96,7 +96,10 @@ services:
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)" - "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}" - "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure" - "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "coop-cloud.${STACK_NAME}.version=3.2.0+2024.06.61" - "coop-cloud.${STACK_NAME}.version=4.0.0+2024.06.67"
- "backupbot.backup=${ENABLE_BACKUPS:-true}"
- "backupbot.backup.volumes.traefik_letsencrypt=false"
- "backupbot.backup.volumes.mailu.path=backup"
db: db:
image: redis:8.10.2-alpine image: redis:8.10.2-alpine
@@ -104,7 +107,7 @@ services:
- "redis:/data" - "redis:/data"
admin: admin:
image: ghcr.io/mailu/admin:2024.06.61 image: ghcr.io/mailu/admin:2024.06.67
environment: *default-env environment: *default-env
healthcheck: healthcheck:
disable: true disable: true
@@ -115,9 +118,16 @@ services:
- "mailu:/data" - "mailu:/data"
networks: networks:
- default - default
configs:
- source: backup_sqlite
target: /usr/local/bin/backup_sqlite.py
mode: 0444
deploy:
labels:
backupbot.backup.pre-hook: "python3 /usr/local/bin/backup_sqlite.py"
imap: imap:
image: ghcr.io/mailu/dovecot:2024.06.61 image: ghcr.io/mailu/dovecot:2024.06.67
environment: *default-env environment: *default-env
secrets: secrets:
- secret_key - secret_key
@@ -131,7 +141,7 @@ services:
- default - default
smtp: smtp:
image: ghcr.io/mailu/postfix:2024.06.61 image: ghcr.io/mailu/postfix:2024.06.67
environment: *default-env environment: *default-env
secrets: secrets:
- secret_key - secret_key
@@ -143,7 +153,7 @@ services:
- app - app
antispam: antispam:
image: ghcr.io/mailu/rspamd:2024.06.61 image: ghcr.io/mailu/rspamd:2024.06.67
environment: *default-env environment: *default-env
secrets: secrets:
- secret_key - secret_key
@@ -154,7 +164,7 @@ services:
disable: true disable: true
webmail: webmail:
image: ghcr.io/mailu/webmail:2024.06.66 image: ghcr.io/mailu/webmail:2024.06.67
# entrypoint: "tail -f /dev/null" # entrypoint: "tail -f /dev/null"
environment: *default-env environment: *default-env
networks: networks:
@@ -221,6 +231,10 @@ configs:
certdumper_post: certdumper_post:
name: ${STACK_NAME}_certdumper_post_${CERTDUMPER_POST_VERSION} name: ${STACK_NAME}_certdumper_post_${CERTDUMPER_POST_VERSION}
file: certdumper_post.sh file: certdumper_post.sh
backup_sqlite:
name: ${STACK_NAME}_backup_sqlite_${BACKUP_SQLITE_VERSION}
file: backup_sqlite.py
secrets: secrets:
secret_key: secret_key:
+1
View File
@@ -0,0 +1 @@
Actual mitigation for php2shell pending further alpine image upgrades