Files
kamidso-back/docker-compose.yml
javadandCursor b93ecf1691 Initial commit of the Kamidso API.
Keep source, config, and deploy files. Leave runtime data, uploads, and logs out of git.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-10 13:43:09 +03:30

52 lines
1.1 KiB
YAML

# Local stack: MongoDB and the Kamidso API.
# The web UI is the separate frontend repository.
# docker compose up --build -d
# API: http://localhost:5670
services:
mongodb:
image: mongo:7
restart: unless-stopped
ports:
- "27017:27017"
volumes:
- kamidso-mongo:/data/db
healthcheck:
test: ["CMD", "mongosh", "--quiet", "--eval", "db.adminCommand('ping').ok"]
interval: 10s
timeout: 5s
retries: 12
start_period: 20s
networks:
- kamidso
backend:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "5670:5670"
env_file:
- path: .env
required: false
environment:
MONGODB_URI: mongodb://mongodb:27017/kamidso
KAMIDSO_HOST: 0.0.0.0
KAMIDSO_PORT: "5670"
KAMIDSO_ENGINE_CONFIG: configs/dbgpt-proxy-openai.toml
volumes:
- ./data:/app/data
depends_on:
mongodb:
condition: service_healthy
networks:
- kamidso
volumes:
kamidso-mongo:
networks:
kamidso:
driver: bridge