2022-11-22 20:20:30 +00:00
|
|
|
version: "3.8"
|
|
|
|
services:
|
2022-11-24 19:58:16 +00:00
|
|
|
spiffworkflow-db:
|
|
|
|
container_name: spiffworkflow-db
|
2022-11-22 20:20:30 +00:00
|
|
|
image: mysql:8.0.29
|
|
|
|
platform: linux/amd64
|
|
|
|
cap_add:
|
|
|
|
- SYS_NICE
|
2022-12-01 19:12:25 +00:00
|
|
|
restart: "no"
|
2022-11-22 20:20:30 +00:00
|
|
|
environment:
|
2022-12-01 19:12:25 +00:00
|
|
|
- MYSQL_DATABASE=spiffworkflow_backend_development
|
|
|
|
- MYSQL_ROOT_PASSWORD=my-secret-pw
|
2022-12-21 16:06:09 +00:00
|
|
|
- MYSQL_TCP_PORT=8003
|
2022-11-22 20:20:30 +00:00
|
|
|
ports:
|
2022-12-21 16:06:09 +00:00
|
|
|
- "8003"
|
2022-11-22 20:20:30 +00:00
|
|
|
healthcheck:
|
2022-12-01 19:12:25 +00:00
|
|
|
test: mysql --user=root --password=my-secret-pw -e 'select 1' spiffworkflow_backend_development
|
2022-11-22 20:20:30 +00:00
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 10
|
|
|
|
|
|
|
|
spiffworkflow-backend:
|
|
|
|
container_name: spiffworkflow-backend
|
2022-12-01 19:12:25 +00:00
|
|
|
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:
|
|
|
|
- APPLICATION_ROOT=/
|
2022-12-01 19:12:25 +00:00
|
|
|
- SPIFFWORKFLOW_BACKEND_ENV=development
|
2022-11-22 20:20:30 +00:00
|
|
|
- FLASK_DEBUG=0
|
2022-12-01 19:12:25 +00:00
|
|
|
- FLASK_SESSION_SECRET_KEY=super_secret_key
|
2022-12-21 16:06:09 +00:00
|
|
|
- OPEN_ID_SERVER_URL=http://localhost:8000/openid
|
|
|
|
- SPIFFWORKFLOW_FRONTEND_URL=http://localhost:8001
|
|
|
|
- SPIFFWORKFLOW_BACKEND_URL=http://localhost:8000
|
|
|
|
- SPIFFWORKFLOW_BACKEND_PORT=8000
|
2022-11-22 20:20:30 +00:00
|
|
|
- SPIFFWORKFLOW_BACKEND_UPGRADE_DB=true
|
2022-12-21 16:06:09 +00:00
|
|
|
- SPIFFWORKFLOW_BACKEND_DATABASE_URI=mysql+mysqlconnector://root:my-secret-pw@spiffworkflow-db:8003/spiffworkflow_backend_development
|
2022-11-22 20:20:30 +00:00
|
|
|
- BPMN_SPEC_ABSOLUTE_DIR=/app/process_models
|
2022-12-01 19:12:25 +00:00
|
|
|
- SPIFFWORKFLOW_BACKEND_LOAD_FIXTURE_DATA=false
|
2022-12-05 15:46:26 +00:00
|
|
|
- SPIFFWORKFLOW_BACKEND_PERMISSIONS_FILE_NAME=example.yml
|
2022-11-22 20:20:30 +00:00
|
|
|
- RUN_BACKGROUND_SCHEDULER=true
|
2022-12-01 19:12:25 +00:00
|
|
|
- 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:
|
2022-12-21 16:06:09 +00:00
|
|
|
- "8000:8000"
|
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:
|
2022-12-21 16:06:09 +00:00
|
|
|
test: curl localhost:8000/v1.0/status --fail
|
2022-11-22 20:20:30 +00:00
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 20
|
|
|
|
|
|
|
|
spiffworkflow-frontend:
|
|
|
|
container_name: spiffworkflow-frontend
|
|
|
|
image: ghcr.io/sartography/spiffworkflow-frontend
|
|
|
|
environment:
|
|
|
|
- APPLICATION_ROOT=/
|
2022-12-21 16:06:09 +00:00
|
|
|
- PORT0=8001
|
2022-11-22 20:20:30 +00:00
|
|
|
ports:
|
2022-12-21 16:06:09 +00:00
|
|
|
- "8001:8001"
|
2022-11-22 20:20:30 +00:00
|
|
|
|
2022-11-24 19:58:16 +00:00
|
|
|
spiffworkflow-connector:
|
|
|
|
container_name: spiffworkflow-connector
|
2022-11-22 20:20:30 +00:00
|
|
|
image: ghcr.io/sartography/connector-proxy-demo
|
|
|
|
environment:
|
|
|
|
- FLASK_ENV=${FLASK_ENV:-development}
|
|
|
|
- FLASK_DEBUG=0
|
|
|
|
- FLASK_SESSION_SECRET_KEY=${FLASK_SESSION_SECRET_KEY:-super_secret_key}
|
2022-12-21 16:06:09 +00:00
|
|
|
- CONNECTOR_PROXY_PORT=8004
|
2022-11-22 20:20:30 +00:00
|
|
|
ports:
|
2022-12-21 16:06:09 +00:00
|
|
|
- "8004:8004"
|
2022-11-22 20:20:30 +00:00
|
|
|
healthcheck:
|
2022-12-21 16:06:09 +00:00
|
|
|
test: curl localhost:8004/liveness --fail
|
2022-11-22 20:20:30 +00:00
|
|
|
interval: 10s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 20
|
|
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
spiffworkflow_backend:
|
|
|
|
driver: local
|