From 8c22e1207cd366dbaa441610e23cd3455bd5f0bf Mon Sep 17 00:00:00 2001 From: tipi Date: Sun, 9 Mar 2025 15:39:31 +0000 Subject: [PATCH] =?UTF-8?q?apps/activepieces/docker-compose.json=20hinzuge?= =?UTF-8?q?f=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/activepieces/docker-compose.json | 77 +++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 apps/activepieces/docker-compose.json diff --git a/apps/activepieces/docker-compose.json b/apps/activepieces/docker-compose.json new file mode 100644 index 00000000..8ffa1bd0 --- /dev/null +++ b/apps/activepieces/docker-compose.json @@ -0,0 +1,77 @@ +{ + "services": [ + { + "image": "activepieces/activepieces:0.46.7", + "name": "activepieces", + "internalPort": 80, + "isMain": true, + "dependsOn": { + "activepieces-postgres": { + "condition": "service_healthy" + }, + "activepieces-redis": { + "condition": "service_healthy" + } + }, + "environment": { + "AP_ENGINE_EXECUTABLE_PATH": "dist/packages/engine/main.js", + "AP_API_KEY": "${AP_API_KEY}", + "AP_ENCRYPTION_KEY": "${AP_ENCRYPTION_KEY}", + "AP_JWT_SECRET": "${AP_JWT_SECRET}", + "AP_ENVIRONMENT": "prod", + "AP_FRONTEND_URL": "${APP_PROTOCOL:-http}://${APP_DOMAIN}", + "AP_WEBHOOK_TIMEOUT_SECONDS": "30", + "AP_TRIGGER_DEFAULT_POLL_INTERVAL": "5", + "AP_POSTGRES_DATABASE": "activepieces", + "AP_POSTGRES_HOST": "activepieces-postgres", + "AP_POSTGRES_PORT": "5432", + "AP_POSTGRES_USERNAME": "tipi", + "AP_POSTGRES_PASSWORD": "${AP_POSTGRES_PASSWORD}", + "AP_EXECUTION_MODE": "UNSANDBOXED", + "AP_REDIS_HOST": "activepieces-redis", + "AP_REDIS_PORT": "6379", + "AP_SANDBOX_RUN_TIME_SECONDS": "600", + "AP_TELEMETRY_ENABLED": "true", + "AP_TEMPLATES_SOURCE_URL": "https://cloud.activepieces.com/api/v1/flow-templates" + } + }, + { + "image": "postgres:14", + "name": "activepieces-postgres", + "environment": { + "POSTGRES_DB": "activepieces", + "POSTGRES_PASSWORD": "${AP_POSTGRES_PASSWORD}", + "POSTGRES_USER": "tipi" + }, + "volumes": [ + { + "hostPath": "${APP_DATA_DIR}/data/postgres", + "containerPath": "/var/lib/postgresql/data" + } + ], + "healthCheck": { + "test": "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB", + "interval": "30s", + "timeout": "30s", + "retries": 3 + } + }, + { + "image": "redis:7", + "name": "activepieces-redis", + "healthCheck": { + "test": "redis-cli ping", + "interval": "30s", + "timeout": "30s", + "retries": 3 + }, + "volumes": [ + { + "hostPath": "${APP_DATA_DIR}/data/redis/", + "containerPath": "/data" + } + ] + } + ], + "$schema": "../dynamic-compose-schema.json" +} \ No newline at end of file