Files
Jiangzhou 09d022daee docs(docker): one-liner compose install + env-overridable image (#142)
- README: bash/zsh one-liner using `docker compose -f <(curl ...)`,
  plus keep the clone-the-file path for non-POSIX shells.
- docker-compose.yml: `image:` now reads `${COCOINDEX_CODE_IMAGE:-...}`
  so users can switch to `:full` or GHCR without editing the file.
- pyproject: scope mypy to `src/` and collapse single-entry extras arrays.
2026-04-22 13:08:47 -07:00

36 lines
1.3 KiB
YAML

# cocoindex-code — Docker Compose quickstart.
#
# # macOS / Windows
# docker compose up -d
#
# # Linux (aligns file ownership with your host user)
# PUID=$(id -u) PGID=$(id -g) docker compose up -d
#
# By default your home directory is mounted into the container as the
# workspace. Set COCOINDEX_HOST_WORKSPACE=/path/to/code to mount a narrower
# directory instead.
#
# Override the image via COCOINDEX_CODE_IMAGE — for example:
# COCOINDEX_CODE_IMAGE=cocoindex/cocoindex-code:full docker compose up -d
# COCOINDEX_CODE_IMAGE=ghcr.io/cocoindex-io/cocoindex-code:latest docker compose up -d
services:
cocoindex-code:
image: ${COCOINDEX_CODE_IMAGE:-cocoindex/cocoindex-code:latest}
container_name: cocoindex-code
volumes:
- ${COCOINDEX_HOST_WORKSPACE:-${HOME}}:/workspace
- cocoindex-data:/var/cocoindex
environment:
# Makes CLI and MCP output show your real paths
# (e.g. `/Users/you/myproject/...`) instead of container paths
# (e.g. `/workspace/myproject/...`).
COCOINDEX_CODE_HOST_PATH_MAPPING: /workspace=${COCOINDEX_HOST_WORKSPACE:-${HOME}}
# Linux only: set these so files written to your workspace are owned by
# you rather than root. Not needed on macOS / Windows — leave empty.
PUID: ${PUID:-}
PGID: ${PGID:-}
volumes:
cocoindex-data: