From 643c9da1927481cdf7a50f75c2461061b4f86b0b Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Wed, 25 Feb 2026 01:52:13 -0800 Subject: [PATCH] fix: add Elasticsearch to p2pf and bcrg for Temporal visibility Temporal's SQLite visibility store has a 3 Text search attribute limit, which causes the Postiz backend to crash on startup. Adding Elasticsearch 7.17.24 (matching cc's config) resolves this for both spaces. Co-Authored-By: Claude Opus 4.6 --- deploy/docker-compose.bcrg.yml | 23 +++++++++++++++++++++++ deploy/docker-compose.p2pf.yml | 23 +++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/deploy/docker-compose.bcrg.yml b/deploy/docker-compose.bcrg.yml index abac4fc..acb38bf 100644 --- a/deploy/docker-compose.bcrg.yml +++ b/deploy/docker-compose.bcrg.yml @@ -98,6 +98,24 @@ services: networks: - postiz-bcrg-internal + postiz-bcrg-elasticsearch: + image: docker.elastic.co/elasticsearch/elasticsearch:7.17.24 + container_name: postiz-bcrg-elasticsearch + restart: unless-stopped + environment: + - discovery.type=single-node + - xpack.security.enabled=false + - "ES_JAVA_OPTS=-Xms256m -Xmx256m" + volumes: + - postiz-bcrg-elasticsearch-data:/usr/share/elasticsearch/data + networks: + - postiz-bcrg-internal + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:9200/_cluster/health"] + interval: 30s + timeout: 10s + retries: 5 + postiz-bcrg-temporal-postgres: image: postgres:16 container_name: postiz-bcrg-temporal-postgres @@ -116,12 +134,16 @@ services: restart: unless-stopped depends_on: - postiz-bcrg-temporal-postgres + - postiz-bcrg-elasticsearch environment: - DB=postgres12 - DB_PORT=5432 - POSTGRES_USER=temporal - POSTGRES_PWD=temporal - POSTGRES_SEEDS=postiz-bcrg-temporal-postgres + - ENABLE_ES=true + - ES_SEEDS=postiz-bcrg-elasticsearch + - ES_VERSION=v7 - TEMPORAL_NAMESPACE=default networks: - postiz-bcrg-internal @@ -132,6 +154,7 @@ volumes: postiz-bcrg-config: postiz-bcrg-uploads: postiz-bcrg-temporal-postgres-data: + postiz-bcrg-elasticsearch-data: networks: traefik-public: diff --git a/deploy/docker-compose.p2pf.yml b/deploy/docker-compose.p2pf.yml index ba6311f..cdb9210 100644 --- a/deploy/docker-compose.p2pf.yml +++ b/deploy/docker-compose.p2pf.yml @@ -98,6 +98,24 @@ services: networks: - postiz-p2pf-internal + postiz-p2pf-elasticsearch: + image: docker.elastic.co/elasticsearch/elasticsearch:7.17.24 + container_name: postiz-p2pf-elasticsearch + restart: unless-stopped + environment: + - discovery.type=single-node + - xpack.security.enabled=false + - "ES_JAVA_OPTS=-Xms256m -Xmx256m" + volumes: + - postiz-p2pf-elasticsearch-data:/usr/share/elasticsearch/data + networks: + - postiz-p2pf-internal + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:9200/_cluster/health"] + interval: 30s + timeout: 10s + retries: 5 + postiz-p2pf-temporal-postgres: image: postgres:16 container_name: postiz-p2pf-temporal-postgres @@ -116,12 +134,16 @@ services: restart: unless-stopped depends_on: - postiz-p2pf-temporal-postgres + - postiz-p2pf-elasticsearch environment: - DB=postgres12 - DB_PORT=5432 - POSTGRES_USER=temporal - POSTGRES_PWD=temporal - POSTGRES_SEEDS=postiz-p2pf-temporal-postgres + - ENABLE_ES=true + - ES_SEEDS=postiz-p2pf-elasticsearch + - ES_VERSION=v7 - TEMPORAL_NAMESPACE=default networks: - postiz-p2pf-internal @@ -132,6 +154,7 @@ volumes: postiz-p2pf-config: postiz-p2pf-uploads: postiz-p2pf-temporal-postgres-data: + postiz-p2pf-elasticsearch-data: networks: traefik-public: