This commit is contained in:
@ -3,7 +3,7 @@ version: "3.8"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: plausible/analytics:v2.0.0
|
image: ghcr.io/plausible/community-edition:v2.1.5
|
||||||
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run"
|
command: sh -c "sleep 10 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh run"
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
@ -11,6 +11,7 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- BASE_URL=https://$DOMAIN
|
- BASE_URL=https://$DOMAIN
|
||||||
- SECRET_KEY_BASE
|
- SECRET_KEY_BASE
|
||||||
|
- TOTP_VAULT_KEY
|
||||||
- DATABASE_URL=postgres://plausible:plausible@${STACK_NAME}_db:5432/plausible
|
- DATABASE_URL=postgres://plausible:plausible@${STACK_NAME}_db:5432/plausible
|
||||||
- SMTP_HOST_ADDR
|
- SMTP_HOST_ADDR
|
||||||
- MAILER_EMAIL
|
- MAILER_EMAIL
|
||||||
@ -32,9 +33,9 @@ services:
|
|||||||
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
|
||||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||||
- coop-cloud.${STACK_NAME}.version=3.0.1+v2.0.0
|
- coop-cloud.${STACK_NAME}.version=4.0.0+v2.1.5
|
||||||
db:
|
db:
|
||||||
image: postgres:13.12
|
image: postgres:16
|
||||||
configs:
|
configs:
|
||||||
- source: db_entrypoint
|
- source: db_entrypoint
|
||||||
target: /docker-entrypoint.sh
|
target: /docker-entrypoint.sh
|
||||||
@ -59,7 +60,7 @@ services:
|
|||||||
backupbot.restore.post-hook: sh -c 'gzip -d /postgres.dump.gz && pg_restore --clean -U "$$POSTGRES_USER" --dbname="$$PLAUSIBLE_DB" < /postgres.dump && rm -f /postgres.dump'
|
backupbot.restore.post-hook: sh -c 'gzip -d /postgres.dump.gz && pg_restore --clean -U "$$POSTGRES_USER" --dbname="$$PLAUSIBLE_DB" < /postgres.dump && rm -f /postgres.dump'
|
||||||
|
|
||||||
plausible_events_db:
|
plausible_events_db:
|
||||||
image: clickhouse/clickhouse-server:23.4.2.11-alpine
|
image: clickhouse/clickhouse-server:24.3.3.102-alpine
|
||||||
volumes:
|
volumes:
|
||||||
- event-data:/var/lib/clickhouse
|
- event-data:/var/lib/clickhouse
|
||||||
entrypoint: /custom-entrypoint.sh
|
entrypoint: /custom-entrypoint.sh
|
||||||
|
|||||||
19
release/4.0.0+v2.1.5
Normal file
19
release/4.0.0+v2.1.5
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
⚠ OPERATOR ACTION REQUIRED ⚠
|
||||||
|
|
||||||
|
This major version upgrade changes:
|
||||||
|
|
||||||
|
1. TOTP_VAULT_KEY is now REQUIRED. Generate with:
|
||||||
|
openssl rand -base64 32
|
||||||
|
Add to your app environment config before deploying.
|
||||||
|
|
||||||
|
2. Plausible image moved from Docker Hub (plausible/analytics)
|
||||||
|
to GitHub Container Registry (ghcr.io/plausible/community-edition).
|
||||||
|
|
||||||
|
3. PostgreSQL upgraded from 13 → 16 (major version jump).
|
||||||
|
The recipe handles this automatically via pg_upgrade on first boot.
|
||||||
|
Take a volume backup before upgrading!
|
||||||
|
|
||||||
|
4. ClickHouse upgraded from 23.4 → 24.3 (data-compatible upgrade).
|
||||||
|
|
||||||
|
See upstream upgrade notes:
|
||||||
|
https://github.com/plausible/analytics/releases/tag/v2.1.0
|
||||||
Reference in New Issue
Block a user