2024-03-31 16:39:44 +00:00
|
|
|
# documentation: https://www.activepieces.com/docs/getting-started/introduction
|
2024-04-16 10:42:12 +00:00
|
|
|
# slogan: Open source no-code business automation.
|
2024-03-31 16:39:44 +00:00
|
|
|
# tags: workflow, automation, no code, open source
|
|
|
|
# logo: svgs/activepieces.png
|
|
|
|
|
|
|
|
services:
|
|
|
|
activepieces:
|
2024-04-16 10:42:12 +00:00
|
|
|
image: "ghcr.io/activepieces/activepieces:latest"
|
2024-03-31 16:39:44 +00:00
|
|
|
environment:
|
|
|
|
- AP_API_KEY=$SERVICE_PASSWORD_64_APIKEY
|
2024-03-31 16:44:20 +00:00
|
|
|
- AP_ENCRYPTION_KEY=$SERVICE_PASSWORD_ENCRYPTIONKEY
|
2024-03-31 16:39:44 +00:00
|
|
|
- AP_ENGINE_EXECUTABLE_PATH=dist/packages/engine/main.js
|
|
|
|
- AP_ENVIRONMENT=prod
|
|
|
|
- AP_EXECUTION_MODE=UNSANDBOXED
|
|
|
|
- AP_FRONTEND_URL=$SERVICE_FQDN_ACTIVEPIECES
|
|
|
|
- AP_JWT_SECRET=$SERVICE_PASSWORD_64_JWT
|
|
|
|
- AP_POSTGRES_DATABASE=activepieces
|
|
|
|
- AP_POSTGRES_HOST=postgres
|
2024-04-16 10:42:12 +00:00
|
|
|
- AP_POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
|
2024-03-31 16:39:44 +00:00
|
|
|
- AP_POSTGRES_PORT=5432
|
|
|
|
- AP_POSTGRES_USERNAME=$SERVICE_USER_POSTGRES
|
|
|
|
- AP_REDIS_HOST=redis
|
|
|
|
- AP_REDIS_PORT=6379
|
|
|
|
- AP_SANDBOX_RUN_TIME_SECONDS=600
|
|
|
|
- AP_TELEMETRY_ENABLED=true
|
2024-04-16 10:42:12 +00:00
|
|
|
- "AP_TEMPLATES_SOURCE_URL=https://cloud.activepieces.com/api/v1/flow-templates"
|
2024-03-31 16:39:44 +00:00
|
|
|
- AP_TRIGGER_DEFAULT_POLL_INTERVAL=5
|
|
|
|
- AP_WEBHOOK_TIMEOUT_SECONDS=30
|
|
|
|
depends_on:
|
|
|
|
postgres:
|
|
|
|
condition: service_healthy
|
|
|
|
redis:
|
|
|
|
condition: service_started
|
2024-04-16 10:42:12 +00:00
|
|
|
healthcheck:
|
2024-05-17 08:11:55 +00:00
|
|
|
test: ["CMD", "curl", "-f", "http://127.0.0.1:80"]
|
2024-04-16 10:42:12 +00:00
|
|
|
interval: 5s
|
|
|
|
timeout: 20s
|
|
|
|
retries: 10
|
2024-03-31 16:39:44 +00:00
|
|
|
postgres:
|
2024-04-16 10:42:12 +00:00
|
|
|
image: "postgres:latest"
|
2024-03-31 16:39:44 +00:00
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=activepieces
|
2024-04-16 10:42:12 +00:00
|
|
|
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
|
2024-03-31 16:39:44 +00:00
|
|
|
- POSTGRES_USER=$SERVICE_USER_POSTGRES
|
|
|
|
volumes:
|
2024-04-16 10:42:12 +00:00
|
|
|
- "pg-data:/var/lib/postgresql/data"
|
2024-03-31 16:39:44 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
|
|
|
interval: 5s
|
|
|
|
timeout: 20s
|
|
|
|
retries: 10
|
|
|
|
redis:
|
2024-04-16 10:42:12 +00:00
|
|
|
image: "redis:latest"
|
2024-03-31 16:39:44 +00:00
|
|
|
volumes:
|
2024-04-16 10:42:12 +00:00
|
|
|
- "redis_data:/data"
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
|
|
interval: 5s
|
|
|
|
timeout: 20s
|
|
|
|
retries: 10
|