2022-06-01 18:50:44 +00:00
|
|
|
version: "3.8"
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
container_name: db
|
|
|
|
image: mysql:8.0.29
|
|
|
|
cap_add:
|
|
|
|
- SYS_NICE
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
- MYSQL_DATABASE=spiffworkflow_backend_staging
|
|
|
|
- MYSQL_ROOT_PASSWORD=St4g3Th1515
|
|
|
|
ports:
|
2022-06-06 16:33:15 +00:00
|
|
|
- "3306"
|
2022-06-01 18:50:44 +00:00
|
|
|
volumes:
|
|
|
|
- spiffworkflow_backend:/var/lib/mysql
|
2022-06-01 19:49:05 +00:00
|
|
|
healthcheck:
|
2022-06-02 14:17:53 +00:00
|
|
|
test: mysql --user=root --password=St4g3Th1515 -e 'select 1' spiffworkflow_backend_staging
|
2022-06-01 18:50:44 +00:00
|
|
|
|
|
|
|
spiffworkflow-backend:
|
|
|
|
container_name: spiffworkflow-backend
|
|
|
|
# command: tail -f /etc/hostname
|
|
|
|
depends_on:
|
2022-06-10 21:19:20 +00:00
|
|
|
db:
|
|
|
|
condition: service_healthy
|
2022-06-01 18:50:44 +00:00
|
|
|
# image: sartography/cr-connect-workflow:dev
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
environment:
|
|
|
|
- APPLICATION_ROOT=/
|
|
|
|
- FLASK_ENV=staging
|
|
|
|
- FLASK_SESSION_SECRET_KEY=super_secret_key
|
|
|
|
- DEVELOPMENT=true
|
|
|
|
- LDAP_URL=mock
|
|
|
|
- PORT0=7000
|
|
|
|
- PRODUCTION=false
|
|
|
|
- UPGRADE_DB=true
|
|
|
|
- DATABASE_URI=mysql+mysqlconnector://root:St4g3Th1515@db/spiffworkflow_backend_staging
|
|
|
|
- BPMN_SPEC_ABSOLUTE_DIR=/app/process_models
|
|
|
|
ports:
|
|
|
|
- "7000:7000"
|
|
|
|
volumes:
|
|
|
|
- ${BPMN_SPEC_ABSOLUTE_DIR}:/app/process_models
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
spiffworkflow_backend:
|
|
|
|
driver: local
|