| 
									
										
										
										
											2023-11-12 10:38:07 +00:00
										 |  |  | version: '3.7'
 | 
					
						
							| 
									
										
										
										
											2023-11-11 16:27:53 +00:00
										 |  |  | services:
 | 
					
						
							|  |  |  |   activepieces:
 | 
					
						
							| 
									
										
										
										
											2024-02-22 20:44:25 +00:00
										 |  |  |     image: activepieces/activepieces:0.20.3
 | 
					
						
							| 
									
										
										
										
											2023-11-11 16:27:53 +00:00
										 |  |  |     container_name: activepieces
 | 
					
						
							|  |  |  |     restart: unless-stopped
 | 
					
						
							|  |  |  |     ports:
 | 
					
						
							| 
									
										
										
										
											2023-11-12 10:38:07 +00:00
										 |  |  |       - '${APP_PORT}:80'
 | 
					
						
							| 
									
										
										
										
											2023-11-11 16:27:53 +00:00
										 |  |  |     depends_on:
 | 
					
						
							| 
									
										
										
										
											2023-11-12 10:38:07 +00:00
										 |  |  |       activepieces-postgres:
 | 
					
						
							|  |  |  |         condition: service_healthy
 | 
					
						
							|  |  |  |       activepieces-redis:
 | 
					
						
							|  |  |  |         condition: service_healthy
 | 
					
						
							| 
									
										
										
										
											2023-11-11 16:27:53 +00:00
										 |  |  |     environment:
 | 
					
						
							| 
									
										
										
										
											2023-11-11 18:31:30 +00:00
										 |  |  |       - 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
 | 
					
						
							| 
									
										
										
										
											2023-11-21 21:35:55 +00:00
										 |  |  |       - AP_FRONTEND_URL=${APP_PROTOCOL:-http}://${APP_DOMAIN}
 | 
					
						
							| 
									
										
										
										
											2023-11-11 18:31:30 +00:00
										 |  |  |       - AP_WEBHOOK_TIMEOUT_SECONDS=30
 | 
					
						
							|  |  |  |       - AP_TRIGGER_DEFAULT_POLL_INTERVAL=5
 | 
					
						
							|  |  |  |       - AP_POSTGRES_DATABASE=activepieces
 | 
					
						
							| 
									
										
										
										
											2023-11-12 10:38:07 +00:00
										 |  |  |       - AP_POSTGRES_HOST=activepieces-postgres
 | 
					
						
							| 
									
										
										
										
											2023-11-11 18:31:30 +00:00
										 |  |  |       - AP_POSTGRES_PORT=5432
 | 
					
						
							|  |  |  |       - AP_POSTGRES_USERNAME=tipi
 | 
					
						
							|  |  |  |       - AP_POSTGRES_PASSWORD=${AP_POSTGRES_PASSWORD}
 | 
					
						
							|  |  |  |       - AP_EXECUTION_MODE=UNSANDBOXED
 | 
					
						
							| 
									
										
										
										
											2023-11-12 10:38:07 +00:00
										 |  |  |       - AP_REDIS_HOST=activepieces-redis
 | 
					
						
							| 
									
										
										
										
											2023-11-11 18:31:30 +00:00
										 |  |  |       - 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"
 | 
					
						
							| 
									
										
										
										
											2023-11-11 16:27:53 +00:00
										 |  |  |     networks:
 | 
					
						
							| 
									
										
										
										
											2023-11-12 10:38:07 +00:00
										 |  |  |       - tipi_main_network
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-11 16:27:53 +00:00
										 |  |  |     labels:
 | 
					
						
							|  |  |  |       # Main
 | 
					
						
							|  |  |  |       traefik.enable: true
 | 
					
						
							|  |  |  |       traefik.http.middlewares.activepieces-web-redirect.redirectscheme.scheme: https
 | 
					
						
							| 
									
										
										
										
											2023-11-21 21:35:55 +00:00
										 |  |  |       traefik.http.services.activepieces.loadbalancer.server.port: 80
 | 
					
						
							| 
									
										
										
										
											2023-11-11 16:27:53 +00:00
										 |  |  |       # Web
 | 
					
						
							|  |  |  |       traefik.http.routers.activepieces-insecure.rule: Host(`${APP_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.activepieces-insecure.entrypoints: web
 | 
					
						
							|  |  |  |       traefik.http.routers.activepieces-insecure.service: activepieces
 | 
					
						
							|  |  |  |       traefik.http.routers.activepieces-insecure.middlewares: activepieces-web-redirect
 | 
					
						
							|  |  |  |       # Websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.activepieces.rule: Host(`${APP_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.activepieces.entrypoints: websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.activepieces.service: activepieces
 | 
					
						
							|  |  |  |       traefik.http.routers.activepieces.tls.certresolver: myresolver
 | 
					
						
							|  |  |  |       # Local domain
 | 
					
						
							|  |  |  |       traefik.http.routers.activepieces-local-insecure.rule: Host(`activepieces.${LOCAL_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.activepieces-local-insecure.entrypoints: web
 | 
					
						
							|  |  |  |       traefik.http.routers.activepieces-local-insecure.service: activepieces
 | 
					
						
							|  |  |  |       traefik.http.routers.activepieces-local-insecure.middlewares: activepieces-web-redirect
 | 
					
						
							|  |  |  |       # Local domain secure
 | 
					
						
							|  |  |  |       traefik.http.routers.activepieces-local.rule: Host(`activepieces.${LOCAL_DOMAIN}`)
 | 
					
						
							|  |  |  |       traefik.http.routers.activepieces-local.entrypoints: websecure
 | 
					
						
							|  |  |  |       traefik.http.routers.activepieces-local.service: activepieces
 | 
					
						
							|  |  |  |       traefik.http.routers.activepieces-local.tls: true
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   activepieces-postgres:
 | 
					
						
							| 
									
										
										
										
											2023-11-11 18:21:42 +00:00
										 |  |  |     image: postgres:14
 | 
					
						
							| 
									
										
										
										
											2023-11-11 16:27:53 +00:00
										 |  |  |     restart: unless-stopped
 | 
					
						
							| 
									
										
										
										
											2023-11-11 19:11:43 +00:00
										 |  |  |     container_name: activepieces-postgres
 | 
					
						
							| 
									
										
										
										
											2023-11-12 10:38:07 +00:00
										 |  |  |     healthcheck:
 | 
					
						
							| 
									
										
										
										
											2023-11-21 21:35:55 +00:00
										 |  |  |       test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
 | 
					
						
							| 
									
										
										
										
											2023-11-12 10:38:07 +00:00
										 |  |  |       interval: 30s
 | 
					
						
							|  |  |  |       timeout: 30s
 | 
					
						
							|  |  |  |       retries: 3
 | 
					
						
							| 
									
										
										
										
											2023-11-11 16:27:53 +00:00
										 |  |  |     environment:
 | 
					
						
							|  |  |  |       - POSTGRES_DB=activepieces
 | 
					
						
							|  |  |  |       - POSTGRES_PASSWORD=${AP_POSTGRES_PASSWORD}
 | 
					
						
							|  |  |  |       - POSTGRES_USER=tipi
 | 
					
						
							|  |  |  |     volumes:
 | 
					
						
							| 
									
										
										
										
											2023-11-12 10:38:07 +00:00
										 |  |  |       - '${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data'
 | 
					
						
							| 
									
										
										
										
											2023-11-11 16:27:53 +00:00
										 |  |  |     networks:
 | 
					
						
							|  |  |  |       - tipi_main_network
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   activepieces-redis:
 | 
					
						
							|  |  |  |     image: redis:7
 | 
					
						
							|  |  |  |     container_name: activepieces-redis
 | 
					
						
							| 
									
										
										
										
											2023-11-12 10:38:07 +00:00
										 |  |  |     healthcheck:
 | 
					
						
							|  |  |  |       test: redis-cli ping
 | 
					
						
							|  |  |  |       interval: 30s
 | 
					
						
							|  |  |  |       timeout: 30s
 | 
					
						
							|  |  |  |       retries: 3
 | 
					
						
							| 
									
										
										
										
											2023-11-11 16:27:53 +00:00
										 |  |  |     restart: unless-stopped
 | 
					
						
							|  |  |  |     volumes:
 | 
					
						
							| 
									
										
										
										
											2023-11-12 10:38:07 +00:00
										 |  |  |       - '${APP_DATA_DIR}/data/redis/:/data'
 | 
					
						
							| 
									
										
										
										
											2023-11-11 16:27:53 +00:00
										 |  |  |     networks:
 | 
					
						
							|  |  |  |       - tipi_main_network
 |