2020-02-07 03:23:34 +00:00
|
|
|
version: "3.3"
|
2020-02-07 03:04:01 +00:00
|
|
|
services:
|
|
|
|
db:
|
|
|
|
container_name: db
|
2020-05-22 14:15:15 +00:00
|
|
|
image: sartography/cr-connect-db:$E2E_TAG
|
2020-02-07 03:04:01 +00:00
|
|
|
ports:
|
2020-05-22 14:15:15 +00:00
|
|
|
- "5432:5432"
|
2020-02-07 03:04:01 +00:00
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=crc_user
|
|
|
|
- POSTGRES_PASSWORD=crc_pass
|
2020-04-14 20:22:34 +00:00
|
|
|
- POSTGRES_MULTIPLE_DATABASES=crc_test,crc_dev,pb_test,pb
|
2020-02-07 03:04:01 +00:00
|
|
|
healthcheck:
|
2020-04-14 20:22:34 +00:00
|
|
|
test: ["CMD", "pg_isready"]
|
2020-02-07 03:04:01 +00:00
|
|
|
timeout: 20s
|
|
|
|
retries: 10
|
2020-04-14 20:22:34 +00:00
|
|
|
pb:
|
|
|
|
container_name: pb
|
2020-05-23 01:14:27 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
2020-05-11 17:46:26 +00:00
|
|
|
image: sartography/protocol-builder-mock:$E2E_TAG
|
2020-04-14 20:22:34 +00:00
|
|
|
environment:
|
|
|
|
- FLASK_APP=/protocol-builder-mock/app.py
|
2020-05-23 00:52:03 +00:00
|
|
|
- UPGRADE_DB=true
|
2020-05-22 19:12:59 +00:00
|
|
|
- DB_HOST=db
|
|
|
|
- DB_PORT=5432
|
|
|
|
- DB_PASSWORD=crc_pass
|
|
|
|
- DB_USER=crc_user
|
|
|
|
- DB_NAME=pb_test
|
2020-04-14 20:22:34 +00:00
|
|
|
ports:
|
|
|
|
- "5001:5001"
|
|
|
|
command: ./wait-for-it.sh db:5432 -t 0 -- ./docker_run.sh
|
|
|
|
|
2020-05-11 17:46:26 +00:00
|
|
|
ldap:
|
|
|
|
container_name: ldap
|
|
|
|
image: tuxmonteiro/ldap-mock
|
|
|
|
ports:
|
|
|
|
- "3890"
|
2020-05-23 01:14:27 +00:00
|
|
|
|
|
|
|
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
|
2020-05-23 03:43:32 +00:00
|
|
|
- PB_BASE_URL=http://pb:5001/pb/
|
2020-05-23 01:14:27 +00:00
|
|
|
- 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
|
2020-05-24 02:54:10 +00:00
|
|
|
|
|
|
|
# # 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"
|