2020-02-07 03:23:34 +00:00
|
|
|
version: "3.3"
|
2020-02-07 03:04:01 +00:00
|
|
|
services:
|
|
|
|
db:
|
|
|
|
container_name: db
|
|
|
|
image: postgres
|
|
|
|
volumes:
|
|
|
|
- ./pg-init-scripts/initdb.sh:/docker-entrypoint-initdb.d/initdb.sh
|
|
|
|
ports:
|
2020-02-07 17:52:40 +00:00
|
|
|
- "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
|
|
|
|
|
|
|
|
backend:
|
|
|
|
container_name: backend
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
image: sartography/cr-connect-workflow
|
|
|
|
volumes:
|
|
|
|
- ./flask-config/config.py:/crc-workflow/instance/config.py
|
|
|
|
environment:
|
|
|
|
- FLASK_APP=./crc/__init__.py
|
|
|
|
- RESET_DB=true
|
|
|
|
ports:
|
|
|
|
- "5000:5000"
|
|
|
|
command: ./wait-for-it.sh db:5432 -t 0 -- ./docker_run.sh
|
2020-04-14 20:22:34 +00:00
|
|
|
|
|
|
|
pb:
|
|
|
|
container_name: pb
|
|
|
|
image: sartography/protocol-builder-mock
|
|
|
|
volumes:
|
|
|
|
- ./flask-config/config_pb.py:/protocol-builder-mock/instance/config.py
|
|
|
|
environment:
|
|
|
|
- FLASK_APP=/protocol-builder-mock/app.py
|
|
|
|
ports:
|
|
|
|
- "5001:5001"
|
|
|
|
command: ./wait-for-it.sh db:5432 -t 0 -- ./docker_run.sh
|
|
|
|
|