All compose services now connect to dokploy-network (external overlay) which is the same network where Dokploy apps (kyc, teams, etc.) run. This allows inter-service communication between compose and nixpacks apps.
70 lines
2.5 KiB
YAML
70 lines
2.5 KiB
YAML
version: '3.8'
|
|
|
|
# This Docker Compose file sets up Flowable Platform with a PostgreSQL database.
|
|
# It is designed to be run independently or alongside other services of the Optovia project
|
|
# by using 'docker-compose -f docker-compose.flowable.yml up -d'.
|
|
|
|
networks:
|
|
flowable-net:
|
|
driver: bridge
|
|
dokploy-network:
|
|
external: true
|
|
|
|
services:
|
|
flowable_db:
|
|
image: postgres:13-alpine
|
|
container_name: flowable-postgres
|
|
networks:
|
|
- flowable-net
|
|
environment:
|
|
POSTGRES_DB: flowable
|
|
POSTGRES_USER: flowable
|
|
POSTGRES_PASSWORD: flowable_password_secure # !!! CHANGE THIS PASSWORD IN PRODUCTION !!!
|
|
volumes:
|
|
- flowable_db_data:/var/lib/postgresql/data
|
|
ports:
|
|
- "5432" # Publish container port with a random host port to avoid conflicts
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U flowable -d flowable"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 10s
|
|
restart: on-failure
|
|
|
|
flowable_platform:
|
|
# The commercial "flowable/flowable-platform" image is not publicly available.
|
|
# Use the open-source Flowable REST image instead so Dokploy can pull it without credentials.
|
|
image: flowable/flowable-rest:6.8.0
|
|
container_name: flowable-platform
|
|
networks:
|
|
flowable-net:
|
|
dokploy-network:
|
|
aliases:
|
|
- flowable
|
|
environment:
|
|
# Database connection for Flowable applications
|
|
SPRING_DATASOURCE_URL: jdbc:postgresql://flowable_db:5432/flowable
|
|
SPRING_DATASOURCE_USERNAME: flowable
|
|
SPRING_DATASOURCE_PASSWORD: flowable_password_secure # !!! CHANGE THIS PASSWORD IN PRODUCTION !!!
|
|
SPRING_DATASOURCE_DRIVER_CLASS_NAME: org.postgresql.Driver
|
|
# REST admin user for the Flowable REST app
|
|
FLOWABLE_REST_APP_ADMIN_USER_ID: rest-admin
|
|
FLOWABLE_REST_APP_ADMIN_PASSWORD: rest-admin
|
|
FLOWABLE_REST_APP_ADMIN_FIRST_NAME: Rest
|
|
FLOWABLE_REST_APP_ADMIN_LAST_NAME: Admin
|
|
FLOWABLE_REST_APP_ADMIN_EMAIL: rest-admin@example.com
|
|
# Optional: JVM memory settings
|
|
JAVA_OPTS: "-Xms512m -Xmx1536m"
|
|
# Optional: Enable/disable specific Flowable applications if the image supports it
|
|
# FLOWABLE_COMMON_APP_DEPLOYMENT_ENABLED: "true" # Example
|
|
ports:
|
|
- "8080" # Publish container port with a random host port to avoid conflicts
|
|
depends_on:
|
|
flowable_db:
|
|
condition: service_healthy # Ensure DB is ready before starting Flowable
|
|
restart: on-failure
|
|
|
|
volumes:
|
|
flowable_db_data:
|