IHCI_diet / docker-compose.yml
kissmihalyit
refactored code
ea3f136
raw
history blame contribute delete
821 Bytes
version: '3'
services:
rasa:
build:
context: .
dockerfile: Dockerfile.rasa
container_name: rasa
ports:
- "5005:5005"
environment:
- COHERE_API_KEY=${COHERE_API_KEY}
volumes:
- ./rasa_app:/app/rasa_app
command: ["python", "-m", "rasa", "run", "--enable-api", "--cors", "*"]
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5005/"]
interval: 10s
timeout: 5s
retries: 5
start_period: 15s
app:
build:
context: .
container_name: diet-app
depends_on:
rasa:
condition: service_healthy
ports:
- "7860:7860"
environment:
- COHERE_API_KEY=${COHERE_API_KEY}
- RASA_URL=http://rasa:5005/webhooks/rest/webhook
volumes:
- .:/app
command: ["python", "app.py"]