79 lines
1.8 KiB
YAML
79 lines
1.8 KiB
YAML
version: "3.3"
|
|
services:
|
|
db:
|
|
container_name: db
|
|
image: sartography/cr-connect-db:$E2E_TAG
|
|
ports:
|
|
- "5432:5432"
|
|
environment:
|
|
- POSTGRES_USER=crc_user
|
|
- POSTGRES_PASSWORD=crc_pass
|
|
- POSTGRES_MULTIPLE_DATABASES=crc_test,crc_dev,pb_test,pb
|
|
healthcheck:
|
|
test: ["CMD", "pg_isready"]
|
|
timeout: 20s
|
|
retries: 10
|
|
pb:
|
|
container_name: pb
|
|
depends_on:
|
|
- db
|
|
image: sartography/protocol-builder-mock:$E2E_TAG
|
|
environment:
|
|
- FLASK_APP=/protocol-builder-mock/app.py
|
|
- UPGRADE_DB=true
|
|
- DB_HOST=db
|
|
- DB_PORT=5432
|
|
- DB_PASSWORD=crc_pass
|
|
- DB_USER=crc_user
|
|
- DB_NAME=pb_test
|
|
ports:
|
|
- "5001:5001"
|
|
command: ./wait-for-it.sh db:5432 -t 0 -- ./docker_run.sh
|
|
|
|
ldap:
|
|
container_name: ldap
|
|
image: tuxmonteiro/ldap-mock
|
|
ports:
|
|
- "3890"
|
|
|
|
backend:
|
|
container_name: backend
|
|
depends_on:
|
|
- db
|
|
- pb
|
|
- ldap
|
|
image: sartography/cr-connect-workflow:$E2E_TAG
|
|
environment:
|
|
- FLASK_APP=./crc/__init__.py
|
|
- UPGRADE_DB=true
|
|
- RESET_DB=true
|
|
- LDAP_URL=ldap
|
|
- PB_BASE_URL=http://pb:5001/pb/
|
|
- DB_HOST=db
|
|
- DB_PORT=5432
|
|
- DB_PASSWORD=crc_pass
|
|
- DB_USER=crc_user
|
|
- DB_NAME=crc_test
|
|
ports:
|
|
- "5000:5000"
|
|
command: ./wait-for-it.sh pb:5001 -t 0 -- ./docker_run.sh
|
|
|
|
# # Uncomment for debugging
|
|
# bpmn:
|
|
# container_name: bpmn
|
|
# depends_on:
|
|
# - db
|
|
# - pb
|
|
# - ldap
|
|
# - backend
|
|
# image: sartography/cr-connect-bpmn:$E2E_TAG
|
|
# environment:
|
|
# - API_URL=http://localhost:5000/v1.0
|
|
# - BASE_HREF=/
|
|
# - HOME_ROUTE=home
|
|
# - IRB_URL=http://localhost:5001
|
|
# - PORT0=5002
|
|
# - PRODUCTION=false
|
|
# ports:
|
|
# - "5002:5002"
|