-
Notifications
You must be signed in to change notification settings - Fork 348
fix: update to postiz templates for v2 with temporal #658
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
base: canary
Are you sure you want to change the base?
Changes from all commits
aeff6e7
9a00f67
cb57f6c
66082b5
14d04d5
21ca847
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 |
|---|---|---|
| @@ -1,22 +1,70 @@ | ||
| version: "3.8" | ||
|
|
||
| services: | ||
| postiz-app: | ||
| image: ghcr.io/gitroomhq/postiz-app:latest | ||
|
rubixvi marked this conversation as resolved.
|
||
| restart: always | ||
|
|
||
| environment: | ||
| MAIN_URL: "https://${POSTIZ_HOST}" | ||
| FRONTEND_URL: "https://${POSTIZ_HOST}" | ||
| NEXT_PUBLIC_BACKEND_URL: "https://${POSTIZ_HOST}/api" | ||
| MAIN_URL: "http://${POSTIZ_HOST}" | ||
| FRONTEND_URL: "http://${POSTIZ_HOST}" | ||
| NEXT_PUBLIC_BACKEND_URL: "http://${POSTIZ_HOST}/api" | ||
|
Comment on lines
+7
to
+9
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. changed URL scheme from |
||
|
|
||
| JWT_SECRET: ${JWT_SECRET} | ||
| DATABASE_URL: "postgresql://${DB_USER}:${DB_PASSWORD}@postiz-postgres:5432/${DB_NAME}" | ||
| REDIS_URL: "redis://postiz-redis:6379" | ||
| BACKEND_INTERNAL_URL: "http://localhost:3000" | ||
| TEMPORAL_ADDRESS: "temporal:7233" | ||
|
|
||
| IS_GENERAL: "true" | ||
| STORAGE_PROVIDER: "local" | ||
|
|
||
| STORAGE_PROVIDER: "local" # Change to "cloudflare" to use Cloudflare R2 | ||
| UPLOAD_DIRECTORY: "/uploads" | ||
| NEXT_PUBLIC_UPLOAD_DIRECTORY: "/uploads" | ||
|
|
||
| CLOUDFLARE_ACCOUNT_ID: ${CLOUDFLARE_ACCOUNT_ID} | ||
| CLOUDFLARE_ACCESS_KEY: ${CLOUDFLARE_ACCESS_KEY} | ||
| CLOUDFLARE_SECRET_ACCESS_KEY: ${CLOUDFLARE_SECRET_ACCESS_KEY} | ||
| CLOUDFLARE_BUCKETNAME: ${CLOUDFLARE_BUCKETNAME} | ||
| CLOUDFLARE_BUCKET_URL: ${CLOUDFLARE_BUCKET_URL} | ||
| CLOUDFLARE_REGION: ${CLOUDFLARE_REGION} | ||
|
|
||
| EMAIL_HOST: ${EMAIL_HOST} | ||
| EMAIL_PORT: ${EMAIL_PORT} | ||
| EMAIL_SECURE: ${EMAIL_SECURE} | ||
| EMAIL_USER: ${EMAIL_USER} | ||
| EMAIL_PASS: ${EMAIL_PASS} | ||
|
|
||
| BEEHIIVE_API_KEY: ${BEEHIIVE_API_KEY} | ||
| BEEHIIVE_PUBLICATION_ID: ${BEEHIIVE_PUBLICATION_ID} | ||
| DISCORD_CLIENT_ID: ${DISCORD_CLIENT_ID} | ||
| DISCORD_CLIENT_SECRET: ${DISCORD_CLIENT_SECRET} | ||
| DISCORD_BOT_TOKEN_ID: ${DISCORD_BOT_TOKEN_ID} | ||
| DRIBBBLE_CLIENT_ID: ${DRIBBBLE_CLIENT_ID} | ||
| DRIBBBLE_CLIENT_SECRET: ${DRIBBBLE_CLIENT_SECRET} | ||
| GITHUB_CLIENT_ID: ${GITHUB_CLIENT_ID} | ||
| GITHUB_CLIENT_SECRET: ${GITHUB_CLIENT_SECRET} | ||
| FACEBOOK_APP_ID: ${FACEBOOK_APP_ID} | ||
| FACEBOOK_APP_SECRET: ${FACEBOOK_APP_SECRET} | ||
| LINKEDIN_CLIENT_ID: ${LINKEDIN_CLIENT_ID} | ||
| LINKEDIN_CLIENT_SECRET: ${LINKEDIN_CLIENT_SECRET} | ||
| MASTODON_CLIENT_ID: ${MASTODON_CLIENT_ID} | ||
| MASTODON_CLIENT_SECRET: ${MASTODON_CLIENT_SECRET} | ||
| PINTEREST_CLIENT_ID: ${PINTEREST_CLIENT_ID} | ||
| PINTEREST_CLIENT_SECRET: ${PINTEREST_CLIENT_SECRET} | ||
| REDDIT_CLIENT_ID: ${REDDIT_CLIENT_ID} | ||
| REDDIT_CLIENT_SECRET: ${REDDIT_CLIENT_SECRET} | ||
| SLACK_ID: ${SLACK_ID} | ||
| SLACK_SECRET: ${SLACK_SECRET} | ||
| SLACK_SIGNING_SECRET: ${SLACK_SIGNING_SECRET} | ||
| THREADS_APP_ID: ${THREADS_APP_ID} | ||
| THREADS_APP_SECRET: ${THREADS_APP_SECRET} | ||
| TIKTOK_CLIENT_ID: ${TIKTOK_CLIENT_ID} | ||
| TIKTOK_CLIENT_SECRET: ${TIKTOK_CLIENT_SECRET} | ||
| X_API_KEY: ${X_API_KEY} | ||
| X_API_SECRET: ${X_API_SECRET} | ||
| X_CLIENT: ${X_CLIENT} | ||
| X_SECRET: ${X_SECRET} | ||
| YOUTUBE_CLIENT_ID: ${YOUTUBE_CLIENT_ID} | ||
| YOUTUBE_CLIENT_SECRET: ${YOUTUBE_CLIENT_SECRET} | ||
| volumes: | ||
| - postiz-config:/config/ | ||
| - postiz-uploads:/uploads/ | ||
|
|
@@ -25,37 +73,114 @@ services: | |
| condition: service_healthy | ||
| postiz-redis: | ||
| condition: service_healthy | ||
| temporal: | ||
| condition: service_started | ||
| networks: | ||
| - dokploy-network | ||
| - temporal-network | ||
|
rubixvi marked this conversation as resolved.
|
||
|
|
||
| postiz-postgres: | ||
| image: postgres:17-alpine | ||
| restart: always | ||
|
|
||
| environment: | ||
| POSTGRES_PASSWORD: ${DB_PASSWORD} | ||
| POSTGRES_USER: ${DB_USER} | ||
| POSTGRES_DB: ${DB_NAME} | ||
| volumes: | ||
| - postiz-postgres-data:/var/lib/postgresql/data | ||
| healthcheck: | ||
| test: pg_isready -U ${DB_USER} -d ${DB_NAME} | ||
| interval: 10s | ||
| timeout: 3s | ||
| retries: 3 | ||
| volumes: | ||
| - postiz-postgres-data:/var/lib/postgresql/data | ||
| networks: | ||
| - dokploy-network | ||
|
rubixvi marked this conversation as resolved.
|
||
|
|
||
| postiz-redis: | ||
| image: redis:7.2 | ||
| restart: always | ||
| command: > | ||
| redis-server | ||
| --appendonly yes | ||
| --appendfsync everysec | ||
| --maxmemory 512mb | ||
| --maxmemory-policy noeviction | ||
| --save "" | ||
| healthcheck: | ||
| test: ["CMD", "redis-cli", "ping"] | ||
| interval: 10s | ||
| timeout: 5s | ||
| retries: 5 | ||
| volumes: | ||
| - postiz-redis-data:/data | ||
| networks: | ||
| - dokploy-network | ||
|
rubixvi marked this conversation as resolved.
|
||
|
|
||
| temporal-elasticsearch: | ||
| image: elasticsearch:7.17.27 | ||
| restart: always | ||
| environment: | ||
|
rubixvi marked this conversation as resolved.
|
||
| - cluster.routing.allocation.disk.threshold_enabled=true | ||
| - cluster.routing.allocation.disk.watermark.low=512mb | ||
| - cluster.routing.allocation.disk.watermark.high=256mb | ||
| - cluster.routing.allocation.disk.watermark.flood_stage=128mb | ||
| - discovery.type=single-node | ||
| - ES_JAVA_OPTS=-Xms256m -Xmx256m | ||
| - xpack.security.enabled=false | ||
| volumes: | ||
| - temporal-es-data:/usr/share/elasticsearch/data | ||
| networks: | ||
| - temporal-network | ||
|
rubixvi marked this conversation as resolved.
|
||
|
|
||
| temporal-postgresql: | ||
| image: postgres:17-alpine | ||
| restart: always | ||
| environment: | ||
| POSTGRES_USER: temporal | ||
|
rubixvi marked this conversation as resolved.
|
||
| POSTGRES_PASSWORD: temporal | ||
| POSTGRES_DB: temporal | ||
| healthcheck: | ||
|
rubixvi marked this conversation as resolved.
|
||
| test: redis-cli ping | ||
| test: pg_isready -U temporal -d temporal | ||
| interval: 10s | ||
| timeout: 3s | ||
| retries: 3 | ||
| volumes: | ||
| - postiz-redis-data:/data | ||
| - temporal-db-data:/var/lib/postgresql/data | ||
| networks: | ||
| - temporal-network | ||
|
rubixvi marked this conversation as resolved.
rubixvi marked this conversation as resolved.
|
||
|
|
||
| temporal: | ||
| image: temporalio/auto-setup:1.28.1 | ||
| restart: always | ||
| environment: | ||
| - DB=postgres12 | ||
| - DB_PORT=5432 | ||
|
rubixvi marked this conversation as resolved.
|
||
| - POSTGRES_USER=temporal | ||
| - POSTGRES_PWD=temporal | ||
| - POSTGRES_SEEDS=temporal-postgresql | ||
| - ENABLE_ES=true | ||
| - ES_SEEDS=temporal-elasticsearch | ||
|
rubixvi marked this conversation as resolved.
|
||
| - ES_VERSION=v7 | ||
| - TEMPORAL_NAMESPACE=default | ||
| depends_on: | ||
| temporal-postgresql: | ||
| condition: service_healthy | ||
| temporal-elasticsearch: | ||
| condition: service_started | ||
| networks: | ||
| - temporal-network | ||
|
rubixvi marked this conversation as resolved.
|
||
|
|
||
| networks: | ||
| dokploy-network: | ||
| external: true | ||
| temporal-network: | ||
| driver: bridge | ||
| name: temporal-network | ||
|
rubixvi marked this conversation as resolved.
Comment on lines
+173
to
+178
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. defining networks violates the style guide (AGENTS.md:150) which states: "NEVER include: while some existing templates use Context Used: Context from |
||
|
|
||
| volumes: | ||
| postiz-postgres-data: | ||
| postiz-redis-data: | ||
| postiz-config: | ||
| postiz-uploads: | ||
| postiz-uploads: | ||
| temporal-db-data: | ||
| temporal-es-data: | ||
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.
missing
version: "3.8"field - the style guide (AGENTS.md:149) requires Version: MUST be3.8Context Used: Context from
dashboard- AGENTS.md (source)Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!