Compare commits

..
1 Commits
Author SHA1 Message Date
renovate-bot 1290fb1a40 Add renovate.json 2026-03-10 18:03:25 +00:00
8 changed files with 14 additions and 71 deletions
+1 -7
View File
@@ -19,10 +19,4 @@ SMTP_HOST=127.0.0.71
SMTP_USER=pretix
SMTP_PORT=1025
SMTP_TLS=on
SMTP_SSL=off
# --- Optional: Custom Plugin Image ---
# Set COMPOSE_FILE and PRETIX_PLUGIN_IMAGE_TAG to use custom plugins:
#
# COMPOSE_FILE=compose.yml:compose.plugin.yml
# PRETIX_PLUGIN_IMAGE_TAG=1.0.0
SMTP_SSL=off
+1 -23
View File
@@ -26,28 +26,6 @@
For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech).
## Plugins
1. Build or obtain a plugin bundle image.
Use the [pretix-plugins Repository](https://git.coopcloud.tech/coop-cloud/pretix-plugins) to build an image containing the plugins you need, or use an existing published image.
2. Set the following variables in your app .env:
```
COMPOSE_FILE=compose.yml:compose.plugin.yml
PRETIX_PLUGIN_IMAGE=git.coopcloud.tech/your-org/pretix-plugins:1.0.0
```
3. Deploy as usual:
`abra app deploy <app-name>`
### How the override works
`compose.plugin.yml` is an optional compose file that overrides only the `image:` field of the app service. Docker Compose merges the two files at deploy time. If `PRETIX_PLUGIN_IMAGE` is not set, the standard pretix/standalone:stable
image is used as a fallback, so the override file can be included without risk.
### Operators without plugins
No action required. As long as `COMPOSE_FILE` and `PRETIX_PLUGIN_IMAGE` are not set in your `.env`, the standard pretix image is used. This override has no effect on your deployment.
### Building your own plugin bundle
See the [pretix-plugins Repository](https://git.coopcloud.tech/coop-cloud/pretix-plugins) `README` for instructions on how to add or change the plugins you want to use.
## TODO
@@ -55,4 +33,4 @@ See the [pretix-plugins Repository](https://git.coopcloud.tech/coop-cloud/pretix
* [x] healthchecks
* [x] cronjob: 15,45 * * * * /usr/bin/docker exec pretix.service pretix cron
* [x] backups https://docs.pretix.eu/en/latest/admin/maintainance.html#maintainance
* [x] plugins
* [ ] plugins
+1 -2
View File
@@ -1,5 +1,4 @@
export PRETIX_CONFIG_VERSION=v2
export APP_ENTRYPOINT_VERSION=v1
export CRON_ENTRYPOINT_VERSION=v2
export DB_ENTRYPOINT_VERSION=v2
export PG_BACKUP_VERSION=v1
@@ -19,4 +18,4 @@ echo "Changed admin password"
fix_collation_mismatch() {
psql -U ${POSTGRES_USER} -d ${POSTGRES_DB} -c "ALTER DATABASE ${POSTGRES_DB} REFRESH COLLATION VERSION;"
psql -U ${POSTGRES_USER} -d ${POSTGRES_DB} -c "REINDEX DATABASE ${POSTGRES_DB};"
}
}
-8
View File
@@ -1,8 +0,0 @@
# compose.plugin.yml
# Optional Override: Changes the Standard-Pretix Image with an Image with preinstalled custom plugins.
# Set active via setting: COMPOSE_FILE=compose.yml:compose.plugin.yml
version: "3.8"
services:
app:
image: git.coopcloud.tech/coop-cloud/pretix-plugins:${PRETIX_PLUGIN_IMAGE_TAG:-latest}
+5 -13
View File
@@ -3,7 +3,7 @@ version: "3.8"
services:
app:
image: "pretix/standalone:2026.5.1"
image: "pretix/standalone:2026.1.1"
networks:
- proxy
- internal
@@ -12,11 +12,6 @@ services:
configs:
- source: pretix_config
target: /etc/pretix/pretix.cfg
- source: app_entrypoint
target: /usr/local/bin/wait-for-db.sh
mode: 0555
entrypoint: ["/usr/local/bin/wait-for-db.sh"]
command: ["all"]
secrets:
- db_password
- smtp_password
@@ -24,20 +19,20 @@ services:
- admin_pass
deploy:
restart_policy:
condition: any
condition: on-failure
labels:
- "traefik.enable=true"
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "coop-cloud.${STACK_NAME}.version=2.7.0+2026.5.1"
- "coop-cloud.${STACK_NAME}.version=2.4.0+2026.1.1"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/healthcheck"]
interval: 30s
timeout: 10s
retries: 30
start_period: 5m
start_period: 1m
db:
image: postgres:16
@@ -77,7 +72,7 @@ services:
backupbot.restore.post-hook: "/pg_backup.sh restore"
redis:
image: redis:8.8.0-alpine
image: redis:8.6.0-alpine
volumes:
- "redis:/data"
healthcheck:
@@ -107,9 +102,6 @@ volumes:
redis:
configs:
app_entrypoint:
name: ${STACK_NAME}_app_entrypoint_${APP_ENTRYPOINT_VERSION}
file: entrypoint.wait-for-db.sh
pretix_config:
name: ${STACK_NAME}_pretix_config_${PRETIX_CONFIG_VERSION}
file: pretix.cfg.tmpl
-17
View File
@@ -1,17 +0,0 @@
#!/bin/sh
set -e
until python3 -c "
import psycopg2, sys
try:
psycopg2.connect(host='db', dbname='pretix', user='pretix',
password=open('/run/secrets/db_password').read().strip(),
connect_timeout=3)
except Exception:
sys.exit(1)
"; do
echo 'waiting for postgres...'
sleep 2
done
exec /usr/local/bin/pretix "$@"
-1
View File
@@ -1 +0,0 @@
New envs for COMPOSE_FILE and PRETIX_PLUGIN_IMAGE and a compose.plugin.yml to add custom plugins in the pretix-plugins coop-cloud repository.
+6
View File
@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
]
}