21 lines
686 B
YAML

# This is a simplified example for learning purposes. Do not use this in production.
# For production-ready deployments, see: https://www.tensorzero.com/docs/gateway/deployment
services:
gateway:
image: tensorzero/gateway
volumes:
- ./config:/app/config:ro
command: --config-file /app/config/tensorzero.toml
environment:
AZURE_API_KEY: ${AZURE_API_KEY:?Environment variable AZURE_API_KEY must be set.}
ports:
- "3000:3000"
extra_hosts:
- "host.docker.internal:host-gateway"
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:3000/health
start_period: 1s
start_interval: 1s
timeout: 1s