-
Notifications
You must be signed in to change notification settings - Fork 456
fix(postiz): Resolve Temporal crash loop by isolating Workflow database #800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
080cd86
a39a5f2
3abfbe5
9430a34
64e2d72
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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}" | ||
|
|
@@ -21,6 +20,10 @@ services: | |
| STORAGE_PROVIDER: "local" | ||
| UPLOAD_DIRECTORY: "/uploads" | ||
| NEXT_PUBLIC_UPLOAD_DIRECTORY: "/uploads" | ||
| <<<<<<< HEAD | ||
| TEMPORAL_WORKER_URL: "postiz-temporal:7233" | ||
| TEMPORAL_URL: "postiz-temporal:7233" | ||
| ======= | ||
|
|
||
| # === Social Media API Settings === | ||
| # These variables should be defined in the Dokploy Environment tab. | ||
|
|
@@ -32,6 +35,7 @@ services: | |
| X_API_KEY: ${X_API_KEY} | ||
| X_API_SECRET: ${X_API_SECRET} | ||
|
|
||
| >>>>>>> origin/canary | ||
| volumes: | ||
| - postiz-config:/config/ | ||
| - postiz-uploads:/uploads/ | ||
|
|
@@ -40,13 +44,60 @@ services: | |
| condition: service_healthy | ||
| postiz-redis: | ||
| condition: service_healthy | ||
| <<<<<<< HEAD | ||
| postiz-temporal: | ||
| condition: service_healthy | ||
|
|
||
| postiz-temporal: | ||
| image: temporalio/server:1.27.2 | ||
| restart: always | ||
| environment: | ||
| - DB=postgresql | ||
| - DB_PORT=5432 | ||
| - POSTGRES_USER=${DB_USER} | ||
| - POSTGRES_PWD=${DB_PASSWORD} | ||
| - POSTGRES_SEEDS=postiz-temporal-postgres | ||
| depends_on: | ||
| postiz-temporal-postgres: | ||
| condition: service_healthy | ||
| healthcheck: | ||
| test: ["CMD-SHELL", "tctl --address localhost:7233 cluster health || exit 1"] | ||
| interval: 10s | ||
| timeout: 5s | ||
| retries: 10 | ||
| start_period: 30s | ||
|
Comment on lines
+63
to
+68
|
||
|
|
||
| postiz-temporal-ui: | ||
| image: temporalio/ui:2.30.0 | ||
| restart: always | ||
| environment: | ||
| - TEMPORAL_ADDRESS=postiz-temporal:7233 | ||
| - TEMPORAL_CORS_ORIGINS=https://${POSTIZ_HOST} | ||
| depends_on: | ||
| postiz-temporal: | ||
| condition: service_healthy | ||
|
Comment on lines
+70
to
+78
|
||
|
|
||
| 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 | ||
| ======= | ||
| temporal: | ||
| condition: service_started | ||
| >>>>>>> origin/canary | ||
|
|
||
| postiz-postgres: | ||
| image: postgres:17-alpine | ||
| restart: always | ||
|
|
||
| environment: | ||
| POSTGRES_PASSWORD: ${DB_PASSWORD} | ||
| POSTGRES_USER: ${DB_USER} | ||
|
|
@@ -63,7 +114,6 @@ services: | |
| postiz-redis: | ||
| image: redis:7.2 | ||
| restart: always | ||
|
|
||
| healthcheck: | ||
| test: ["CMD", "redis-cli", "ping"] | ||
| interval: 10s | ||
|
|
@@ -127,5 +177,9 @@ volumes: | |
| postiz-redis-data: | ||
| postiz-config: | ||
| postiz-uploads: | ||
| <<<<<<< HEAD | ||
| postiz-temporal-db-data: | ||
| ======= | ||
| temporal-es-data: | ||
| temporal-pg-data: | ||
| temporal-pg-data: | ||
| >>>>>>> origin/canary | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
postiz-temporalhealthcheck runstctl, but this compose file does not include atemporalio/admin-toolssidecar (and in this repotctlis typically run from that image, e.g.blueprints/peerdb/docker-compose.yml:78-85). Iftctlisn’t present in thetemporalio/serverimage, the healthcheck will fail indefinitely andpostiz-app(which depends oncondition: service_healthy) will never start. Consider switching the healthcheck to a simple port/TCP probe on 7233, or add an admin-tools container and move thetctl-based healthcheck there (and depend on that instead).