@aj-archipelago/cortex
Version:
Cortex is a GraphQL API for AI. It provides a simple, extensible interface for using AI services from OpenAI, Azure and others.
24 lines (22 loc) • 625 B
YAML
services:
doc-to-pdf:
build:
context: .
platform: linux/amd64 # Force AMD64 for Azure compatibility (works on Mac via emulation)
ports:
- "8080:8080"
environment:
- PORT=8080
tmpfs:
- /tmp:size=256m
volumes:
# Mount local code for development (optional)
- ./function_app.py:/home/site/wwwroot/function_app.py
- ./converter.py:/home/site/wwwroot/converter.py
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s