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

33 lines
811 B
YAML

version: "3.7"
services:
db:
container_name: db
image: postgres
volumes:
- ./pg-init-scripts/initdb.sh:/docker-entrypoint-initdb.d/initdb.sh
ports:
- "5432:5432"
environment:
- POSTGRES_USER=crc_user
- POSTGRES_PASSWORD=crc_pass
- POSTGRES_MULTIPLE_DATABASES=crc_test,crc_dev
healthcheck:
test: ["CMD", "ping", "-h", "localhost"]
timeout: 20s
retries: 10
start_period: 20s
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