Files
docker-compose-cookbooks/activepieces_dev/compose.yaml
T

70 lines
1.8 KiB
YAML

# Activepieces
services:
activepieces:
image: ${ACTIVEPIECES_IMAGE:-ghcr.io/activepieces/activepieces:0.44.0}
restart: ${ACTIVEPIECES_RESTART:-unless-stopped}
volumes:
- ${VOL_PATH:-/data}/activepieces_dev/cache:/usr/src/app/cache
environment:
- AP_ENGINE_EXECUTABLE_PATH=dist/packages/engine/main.js
- AP_ENCRYPTION_KEY=${AP_ENCRYPTION_KEY:-changeme}
- AP_JWT_SECRET=${AP_JWT_SECRET:-changeme}
- AP_ENVIRONMENT=prod
- AP_FRONTEND_URL=http://${ACTIVEPIECES_DOMAIN:-localhost}:${ACTIVEPIECES_PORT:-8080}
- AP_POSTGRES_DATABASE=activepieces
- AP_POSTGRES_HOST=postgres
- AP_POSTGRES_PORT=5432
- AP_POSTGRES_USERNAME=postgres
- AP_POSTGRES_PASSWORD=${AP_POSTGRES_PASSWORD:-changeme}
- AP_EXECUTION_MODE=UNSANDBOXED
- AP_REDIS_HOST=redis
- AP_REDIS_PORT=6379
- AP_FLOW_TIMEOUT_SECONDS=600
- AP_TELEMETRY_ENABLED=true
- AP_TEMPLATES_SOURCE_URL=https://cloud.activepieces.com/api/v1/flow-templates
ports:
- "${ACTIVEPIECES_PORT:-8080}:80"
networks:
- proxy
- internal
depends_on:
- postgres
- redis
postgres:
image: ${ACTIVEPIECES_POSTGRES_IMAGE:-postgres:14.4}
restart: ${ACTIVEPIECES_RESTART:-unless-stopped}
volumes:
- ${VOL_PATH:-/data}/activepieces_dev/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_DB=activepieces
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=${AP_POSTGRES_PASSWORD:-changeme}
networks:
- internal
redis:
image: ${ACTIVEPIECES_REDIS_IMAGE:-redis:7.0.7}
restart: ${ACTIVEPIECES_RESTART:-unless-stopped}
volumes:
- ${VOL_PATH:-/data}/activepieces_dev/redis:/data
networks:
- internal
networks:
proxy:
external: true
internal:
driver: bridge