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:
|
|
|
|
condition: service_healthy
|
2022-11-22 20:20:30 +00:00
|
|
|
environment:
|
2023-01-24 20:20:19 +00:00
|
|
|
APPLICATION_ROOT: "/"
|
|
|
|
PORT0: "${SPIFF_FRONTEND_PORT:-8001}"
|
2022-11-22 20:20:30 +00:00
|
|
|
ports:
|
2023-01-24 20:20:19 +00:00
|
|
|
- "${SPIFF_FRONTEND_PORT:-8001}:${SPIFF_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
|
|
|
depends_on:
|
2022-11-24 19:58:16 +00:00
|
|
|
spiffworkflow-db:
|
2022-11-22 20:20:30 +00:00
|
|
|
condition: service_healthy
|
|
|
|
environment:
|
2023-01-24 20:20:19 +00:00
|
|
|
APPLICATION_ROOT: "/"
|
2023-02-11 18:50:10 +00:00
|
|
|
SPIFFWORKFLOW_BACKEND_ENV: "local_development"
|
2023-01-24 20:20:19 +00:00
|
|
|
FLASK_DEBUG: "0"
|
|
|
|
FLASK_SESSION_SECRET_KEY: "${FLASK_SESSION_SECRET_KEY:-super_secret_key}"
|
|
|
|
OPEN_ID_SERVER_URL: "http://localhost:${SPIFF_BACKEND_PORT:-8000}/openid"
|
|
|
|
SPIFFWORKFLOW_FRONTEND_URL: "http://localhost:${SPIFF_FRONTEND_PORT:-8001}"
|
|
|
|
# WARNING: Frontend is a static site which assumes frontend port - 1 on localhost.
|
|
|
|
SPIFFWORKFLOW_BACKEND_URL: "http://localhost:${SPIFF_BACKEND_PORT:-8000}"
|
|
|
|
SPIFFWORKFLOW_BACKEND_PORT: "${SPIFF_BACKEND_PORT:-8000}"
|
|
|
|
SPIFFWORKFLOW_BACKEND_UPGRADE_DB: "true"
|
|
|
|
SPIFFWORKFLOW_BACKEND_DATABASE_URI: "mysql+mysqlconnector://root:${SPIFF_MYSQL_PASS:-my-secret-pw}@spiffworkflow-db:${SPIFF_MYSQL_PORT:-8003}/spiffworkflow_backend_development"
|
|
|
|
BPMN_SPEC_ABSOLUTE_DIR: "/app/process_models"
|
|
|
|
SPIFFWORKFLOW_BACKEND_LOAD_FIXTURE_DATA: "false"
|
|
|
|
SPIFFWORKFLOW_BACKEND_PERMISSIONS_FILE_NAME: "example.yml"
|
|
|
|
RUN_BACKGROUND_SCHEDULER: "true"
|
|
|
|
OPEN_ID_CLIENT_ID: "spiffworkflow-backend"
|
|
|
|
OPEN_ID_CLIENT_SECRET_KEY: "my_open_id_secret_key"
|
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:
|
2022-12-01 19:12:25 +00:00
|
|
|
- ./process_models:/app/process_models
|
2022-11-22 20:20:30 +00:00
|
|
|
- ./log:/app/log
|
|
|
|
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
|
|
|
|
|
2023-01-24 20:20:19 +00:00
|
|
|
spiffworkflow-db:
|
|
|
|
container_name: spiffworkflow-db
|
|
|
|
image: mysql:8.0.29
|
|
|
|
platform: linux/amd64
|
|
|
|
cap_add:
|
|
|
|
- SYS_NICE
|
|
|
|
restart: "no"
|
|
|
|
environment:
|
|
|
|
MYSQL_DATABASE: "spiffworkflow_backend_development"
|
|
|
|
MYSQL_ROOT_PASSWORD: "${SPIFF_MYSQL_PASS:-my-secret-pw}"
|
|
|
|
MYSQL_TCP_PORT: "${SPIFF_MYSQL_PORT:-8003}"
|
|
|
|
ports:
|
|
|
|
- "${SPIFF_MYSQL_PORT:-8003}:${SPIFF_MYSQL_PORT:-8003}/tcp"
|
|
|
|
healthcheck:
|
|
|
|
test: "mysql --user=root --password=${SPIFF_MYSQL_PASS:-my-secret-pw} -e 'select 1' spiffworkflow_backend_development"
|
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 10
|
|
|
|
|
2022-11-22 20:20:30 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
spiffworkflow_backend:
|
|
|
|
driver: local
|