2024-02-16 21:03:35 +00:00
|
|
|
# version: "3.8"
|
|
|
|
|
2022-11-22 20:20:30 +00:00
|
|
|
services:
|
2023-01-24 20:20:19 +00:00
|
|
|
spiffworkflow-frontend:
|
|
|
|
container_name: spiffworkflow-frontend
|
|
|
|
image: ghcr.io/sartography/spiffworkflow-frontend:latest
|
|
|
|
depends_on:
|
|
|
|
spiffworkflow-backend:
|
2024-02-16 21:03:35 +00:00
|
|
|
condition: service_started
|
2022-11-22 20:20:30 +00:00
|
|
|
environment:
|
2023-01-24 20:20:19 +00:00
|
|
|
APPLICATION_ROOT: "/"
|
2023-02-16 15:21:02 +00:00
|
|
|
PORT0: "${SPIFFWORKFLOW_FRONTEND_PORT:-8001}"
|
2022-11-22 20:20:30 +00:00
|
|
|
ports:
|
2023-02-16 15:21:02 +00:00
|
|
|
- "${SPIFFWORKFLOW_FRONTEND_PORT:-8001}:${SPIFFWORKFLOW_FRONTEND_PORT:-8001}/tcp"
|
2022-11-22 20:20:30 +00:00
|
|
|
|
|
|
|
spiffworkflow-backend:
|
2023-02-06 13:35:44 +00:00
|
|
|
container_name: spiffworkflow-backend
|
|
|
|
image: ghcr.io/sartography/spiffworkflow-backend:latest
|
2022-11-22 20:20:30 +00:00
|
|
|
environment:
|
2023-02-15 22:21:37 +00:00
|
|
|
SPIFFWORKFLOW_BACKEND_APPLICATION_ROOT: "/"
|
2023-08-31 20:09:26 +00:00
|
|
|
SPIFFWORKFLOW_BACKEND_ENV: "local_docker"
|
2023-01-24 20:20:19 +00:00
|
|
|
FLASK_DEBUG: "0"
|
|
|
|
FLASK_SESSION_SECRET_KEY: "${FLASK_SESSION_SECRET_KEY:-super_secret_key}"
|
|
|
|
# WARNING: Frontend is a static site which assumes frontend port - 1 on localhost.
|
|
|
|
SPIFFWORKFLOW_BACKEND_URL: "http://localhost:${SPIFF_BACKEND_PORT:-8000}"
|
2023-02-16 15:21:02 +00:00
|
|
|
|
2023-02-15 22:21:37 +00:00
|
|
|
SPIFFWORKFLOW_BACKEND_BPMN_SPEC_ABSOLUTE_DIR: "/app/process_models"
|
2023-02-16 15:21:02 +00:00
|
|
|
SPIFFWORKFLOW_BACKEND_CONNECTOR_PROXY_URL: "http://spiffworkflow-connector:8004"
|
2023-06-01 20:36:37 +00:00
|
|
|
SPIFFWORKFLOW_BACKEND_DATABASE_TYPE: "sqlite"
|
|
|
|
SPIFFWORKFLOW_BACKEND_DATABASE_URI: "sqlite:////app/db_volume/db.sqlite3"
|
2023-01-24 20:20:19 +00:00
|
|
|
SPIFFWORKFLOW_BACKEND_LOAD_FIXTURE_DATA: "false"
|
2023-08-31 20:09:26 +00:00
|
|
|
SPIFFWORKFLOW_BACKEND_LOG_LEVEL: "DEBUG"
|
2023-02-15 22:21:37 +00:00
|
|
|
SPIFFWORKFLOW_BACKEND_OPEN_ID_CLIENT_ID: "spiffworkflow-backend"
|
|
|
|
SPIFFWORKFLOW_BACKEND_OPEN_ID_CLIENT_SECRET_KEY: "my_open_id_secret_key"
|
2023-02-16 15:21:02 +00:00
|
|
|
SPIFFWORKFLOW_BACKEND_OPEN_ID_SERVER_URL: "http://localhost:${SPIFF_BACKEND_PORT:-8000}/openid"
|
|
|
|
SPIFFWORKFLOW_BACKEND_PERMISSIONS_FILE_NAME: "example.yml"
|
|
|
|
SPIFFWORKFLOW_BACKEND_PORT: "${SPIFF_BACKEND_PORT:-8000}"
|
2023-08-31 20:09:26 +00:00
|
|
|
SPIFFWORKFLOW_BACKEND_RUN_BACKGROUND_SCHEDULER_IN_CREATE_APP: "true"
|
2023-02-16 15:21:02 +00:00
|
|
|
SPIFFWORKFLOW_BACKEND_UPGRADE_DB: "true"
|
|
|
|
SPIFFWORKFLOW_BACKEND_URL_FOR_FRONTEND: "http://localhost:${SPIFFWORKFLOW_FRONTEND_PORT:-8001}"
|
2022-11-22 20:20:30 +00:00
|
|
|
ports:
|
2023-01-24 20:20:19 +00:00
|
|
|
- "${SPIFF_BACKEND_PORT:-8000}:${SPIFF_BACKEND_PORT:-8000}/tcp"
|
2022-11-22 20:20:30 +00:00
|
|
|
volumes:
|
2024-02-28 14:49:45 +00:00
|
|
|
- ${SPIFFWORKFLOW_BACKEND_LOCAL_BPMN_SPEC_DIR:-./process_models}:/app/process_models
|
2023-06-01 20:36:37 +00:00
|
|
|
- spiffworkflow_backend_db:/app/db_volume
|
2022-11-22 20:20:30 +00:00
|
|
|
healthcheck:
|
2023-01-24 20:20:19 +00:00
|
|
|
test: "curl localhost:${SPIFF_BACKEND_PORT:-8000}/v1.0/status --fail"
|
2022-11-22 20:20:30 +00:00
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 20
|
|
|
|
|
2022-11-24 19:58:16 +00:00
|
|
|
spiffworkflow-connector:
|
|
|
|
container_name: spiffworkflow-connector
|
2023-01-24 20:20:19 +00:00
|
|
|
image: ghcr.io/sartography/connector-proxy-demo:latest
|
2022-11-22 20:20:30 +00:00
|
|
|
environment:
|
2023-01-24 20:20:19 +00:00
|
|
|
FLASK_ENV: "${FLASK_ENV:-development}"
|
|
|
|
FLASK_DEBUG: "0"
|
|
|
|
FLASK_SESSION_SECRET_KEY: "${FLASK_SESSION_SECRET_KEY:-super_secret_key}"
|
|
|
|
CONNECTOR_PROXY_PORT: "${SPIFF_CONNECTOR_PORT:-8004}"
|
2022-11-22 20:20:30 +00:00
|
|
|
ports:
|
2023-01-24 20:20:19 +00:00
|
|
|
- "${SPIFF_CONNECTOR_PORT:-8004}:${SPIFF_CONNECTOR_PORT:-8004}/tcp"
|
2022-11-22 20:20:30 +00:00
|
|
|
healthcheck:
|
2023-01-24 20:20:19 +00:00
|
|
|
test: "curl localhost:${SPIFF_CONNECTOR_PORT:-8004}/liveness --fail"
|
2022-11-22 20:20:30 +00:00
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 20
|
|
|
|
|
|
|
|
volumes:
|
2023-06-01 20:36:37 +00:00
|
|
|
spiffworkflow_backend_db:
|
2022-11-22 20:20:30 +00:00
|
|
|
driver: local
|