From 080cd869b9643974b81cd5ee1ce1519343209d26 Mon Sep 17 00:00:00 2001 From: chahat1709 Date: Fri, 17 Apr 2026 18:12:15 +0530 Subject: [PATCH 1/4] fix(postiz): Resolve Temporal crash loop by isolating Workflow database --- blueprints/postiz/docker-compose.yml | 54 +++++++++++++++++++++++++--- 1 file changed, 50 insertions(+), 4 deletions(-) diff --git a/blueprints/postiz/docker-compose.yml b/blueprints/postiz/docker-compose.yml index dfbf3ae94..2efb23fcd 100644 --- a/blueprints/postiz/docker-compose.yml +++ b/blueprints/postiz/docker-compose.yml @@ -4,7 +4,6 @@ services: postiz-app: image: ghcr.io/gitroomhq/postiz-app:latest restart: always - environment: MAIN_URL: "https://${POSTIZ_HOST}" FRONTEND_URL: "https://${POSTIZ_HOST}" @@ -17,6 +16,8 @@ services: STORAGE_PROVIDER: "local" UPLOAD_DIRECTORY: "/uploads" NEXT_PUBLIC_UPLOAD_DIRECTORY: "/uploads" + TEMPORAL_WORKER_URL: "postiz-temporal:7233" + TEMPORAL_URL: "postiz-temporal:7233" volumes: - postiz-config:/config/ - postiz-uploads:/uploads/ @@ -25,11 +26,56 @@ services: condition: service_healthy postiz-redis: condition: service_healthy + postiz-temporal: + condition: service_healthy + + postiz-temporal: + image: temporalio/auto-setup:1.27.2 + restart: always + environment: + - DB=postgresql + - DB_PORT=5432 + - POSTGRES_USER=${DB_USER} + - POSTGRES_PWD=${DB_PASSWORD} + - POSTGRES_SEEDS=postiz-temporal-postgres + - DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development-sql.yaml + depends_on: + postiz-temporal-postgres: + condition: service_healthy + healthcheck: + test: ["CMD", "tctl", "--address", "localhost:7233", "cluster", "health"] + interval: 10s + timeout: 5s + retries: 10 + start_period: 30s + + postiz-temporal-ui: + image: temporalio/ui:2.30.0 + restart: always + environment: + - TEMPORAL_ADDRESS=postiz-temporal:7233 + - TEMPORAL_CORS_ORIGINS=http://localhost:8080 + depends_on: + postiz-temporal: + condition: service_healthy + + postiz-temporal-postgres: + image: postgres:15-alpine + restart: always + environment: + POSTGRES_PASSWORD: ${DB_PASSWORD} + POSTGRES_USER: ${DB_USER} + volumes: + - postiz-temporal-db-data:/var/lib/postgresql/data + healthcheck: + test: pg_isready -U ${DB_USER} + interval: 10s + timeout: 3s + retries: 3 postiz-postgres: image: postgres:17-alpine restart: always - environment: POSTGRES_PASSWORD: ${DB_PASSWORD} POSTGRES_USER: ${DB_USER} @@ -45,7 +91,6 @@ services: postiz-redis: image: redis:7.2 restart: always - healthcheck: test: redis-cli ping interval: 10s @@ -58,4 +103,5 @@ volumes: postiz-postgres-data: postiz-redis-data: postiz-config: - postiz-uploads: \ No newline at end of file + postiz-uploads: + postiz-temporal-db-data: \ No newline at end of file From a39a5f2e34f3ed94710b225490c317df47eb47e7 Mon Sep 17 00:00:00 2001 From: chahat1709 Date: Fri, 17 Apr 2026 18:29:50 +0530 Subject: [PATCH 2/4] fix(postiz): Address AI review feedback, update healthcheck and configs --- blueprints/postiz/docker-compose.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blueprints/postiz/docker-compose.yml b/blueprints/postiz/docker-compose.yml index 2efb23fcd..7b329a554 100644 --- a/blueprints/postiz/docker-compose.yml +++ b/blueprints/postiz/docker-compose.yml @@ -38,12 +38,12 @@ services: - POSTGRES_USER=${DB_USER} - POSTGRES_PWD=${DB_PASSWORD} - POSTGRES_SEEDS=postiz-temporal-postgres - - DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development-sql.yaml + - DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/production-sql.yaml depends_on: postiz-temporal-postgres: condition: service_healthy healthcheck: - test: ["CMD", "tctl", "--address", "localhost:7233", "cluster", "health"] + test: ["CMD-SHELL", "nc -z localhost 7233 || exit 1"] interval: 10s timeout: 5s retries: 10 @@ -54,7 +54,7 @@ services: restart: always environment: - TEMPORAL_ADDRESS=postiz-temporal:7233 - - TEMPORAL_CORS_ORIGINS=http://localhost:8080 + - TEMPORAL_CORS_ORIGINS=https://${POSTIZ_HOST} depends_on: postiz-temporal: condition: service_healthy From 3abfbe50251a7ff25eee69e19ba772764b4f0876 Mon Sep 17 00:00:00 2001 From: chahat1709 Date: Sun, 19 Apr 2026 14:10:17 +0530 Subject: [PATCH 3/4] fix(postiz): use temporalio/server image, add dynamic config volume, fix healthcheck --- blueprints/postiz/docker-compose.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/blueprints/postiz/docker-compose.yml b/blueprints/postiz/docker-compose.yml index 7b329a554..239621b95 100644 --- a/blueprints/postiz/docker-compose.yml +++ b/blueprints/postiz/docker-compose.yml @@ -30,7 +30,7 @@ services: condition: service_healthy postiz-temporal: - image: temporalio/auto-setup:1.27.2 + image: temporalio/server:1.27.2 restart: always environment: - DB=postgresql @@ -39,11 +39,13 @@ services: - POSTGRES_PWD=${DB_PASSWORD} - POSTGRES_SEEDS=postiz-temporal-postgres - DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/production-sql.yaml + volumes: + - postiz-temporal-config:/etc/temporal/config/dynamicconfig depends_on: postiz-temporal-postgres: condition: service_healthy healthcheck: - test: ["CMD-SHELL", "nc -z localhost 7233 || exit 1"] + test: ["CMD-SHELL", "tctl --address localhost:7233 cluster health || exit 1"] interval: 10s timeout: 5s retries: 10 @@ -104,4 +106,5 @@ volumes: postiz-redis-data: postiz-config: postiz-uploads: - postiz-temporal-db-data: \ No newline at end of file + postiz-temporal-db-data: + postiz-temporal-config: \ No newline at end of file From 9430a343d19e22edadeb48a96f1b9b1b7be60871 Mon Sep 17 00:00:00 2001 From: chahat1709 Date: Thu, 14 May 2026 10:26:30 +0530 Subject: [PATCH 4/4] fix(postiz): remove missing dynamic config reference from temporal service --- blueprints/postiz/docker-compose.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/blueprints/postiz/docker-compose.yml b/blueprints/postiz/docker-compose.yml index 239621b95..32fdc4536 100644 --- a/blueprints/postiz/docker-compose.yml +++ b/blueprints/postiz/docker-compose.yml @@ -38,9 +38,6 @@ services: - POSTGRES_USER=${DB_USER} - POSTGRES_PWD=${DB_PASSWORD} - POSTGRES_SEEDS=postiz-temporal-postgres - - DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/production-sql.yaml - volumes: - - postiz-temporal-config:/etc/temporal/config/dynamicconfig depends_on: postiz-temporal-postgres: condition: service_healthy @@ -106,5 +103,4 @@ volumes: postiz-redis-data: postiz-config: postiz-uploads: - postiz-temporal-db-data: - postiz-temporal-config: \ No newline at end of file + postiz-temporal-db-data: \ No newline at end of file