Compare commits
7 Commits
2.4.0+2026.1.1
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 1c47909a6f | |||
| f9e9004a50 | |||
| 5449083859 | |||
|
27237b519c
|
|||
| ceb14a6d1d | |||
| 7072ff60f9 | |||
|
2e5893959c
|
+7
-1
@@ -19,4 +19,10 @@ SMTP_HOST=127.0.0.71
|
||||
SMTP_USER=pretix
|
||||
SMTP_PORT=1025
|
||||
SMTP_TLS=on
|
||||
SMTP_SSL=off
|
||||
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
|
||||
@@ -26,6 +26,28 @@
|
||||
|
||||
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
|
||||
|
||||
@@ -33,4 +55,4 @@ For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech).
|
||||
* [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
|
||||
* [ ] plugins
|
||||
* [x] plugins
|
||||
|
||||
@@ -14,3 +14,8 @@ u.save()
|
||||
"""
|
||||
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};"
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
# 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
-5
@@ -3,7 +3,7 @@ version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: "pretix/standalone:2026.1.1"
|
||||
image: "pretix/standalone:2026.5.1"
|
||||
networks:
|
||||
- proxy
|
||||
- internal
|
||||
@@ -19,20 +19,20 @@ services:
|
||||
- admin_pass
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
condition: any
|
||||
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.4.0+2026.1.1"
|
||||
- "coop-cloud.${STACK_NAME}.version=2.7.0+2026.5.1"
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost/healthcheck"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 30
|
||||
start_period: 1m
|
||||
start_period: 5m
|
||||
|
||||
db:
|
||||
image: postgres:16
|
||||
@@ -72,7 +72,7 @@ services:
|
||||
backupbot.restore.post-hook: "/pg_backup.sh restore"
|
||||
|
||||
redis:
|
||||
image: redis:8.6.0-alpine
|
||||
image: redis:8.8.0-alpine
|
||||
volumes:
|
||||
- "redis:/data"
|
||||
healthcheck:
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
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.
|
||||
Reference in New Issue
Block a user