cr-connect-bpmn/docker/docker-compose.yml

44 lines
1.1 KiB
YAML
Raw Normal View History

version: "3.3"
services:
db:
container_name: db
image: postgres
volumes:
- ./pg-init-scripts/initdb.sh:/docker-entrypoint-initdb.d/initdb.sh
ports:
- "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
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
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