services:
openheim:
build:
context: .
dockerfile: Dockerfile
container_name: openheim-agent
ports:
- "8080:8080"
environment:
- RUST_LOG=info
# API keys are read from config.toml, but can also be set here
# and referenced via env_var in your config
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
restart: unless-stopped
volumes:
# Config directory - mount your own config.toml here
# If not provided, a default config will be created on first run
- openheim-config:/home/openheim/.openheim
# Dev: Mount local config for development
# - ./config.toml:/home/openheim/.openheim/config.toml:ro
# Persistent storage for workspace directory
- openheim-workspace:/workspace
# Dev: Mount local workspace for easy file access during development
# - ./workspace:/workspace
volumes:
openheim-config:
driver: local
openheim-workspace:
driver: local