ralph-claude-code/docker-compose.yml
Claude c01133bd8d
feat(docker): add Docker-based Windows and cross-platform support
Enables Ralph to run inside a Docker container for Windows users
(via Docker Desktop) and anyone preferring containerized execution.

New files:
- Dockerfile (Debian slim + Node.js 20 + all Ralph dependencies)
- docker-compose.yml for easy startup
- docker/docker-entrypoint.sh with UID/GID remapping
- docker/ralph-docker (bash wrapper) and ralph-docker.ps1 (PowerShell)
- .gitattributes to prevent Windows CRLF line ending corruption
- .dockerignore for clean build context
- .github/workflows/docker.yml CI workflow
- docs/user-guide/04-docker-setup.md comprehensive documentation

Updated: README.md, CLAUDE.md, docs/user-guide/README.md, .gitignore

https://claude.ai/code/session_01SNzxUdH1Udf26rN3RKNNzu
2026-02-10 20:54:23 +00:00

21 lines
586 B
YAML

services:
ralph:
build:
context: .
dockerfile: Dockerfile
image: ralph-claude-code:latest
container_name: ralph
stdin_open: true
tty: true
working_dir: /workspace
environment:
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- RALPH_UID=${RALPH_UID:-1000}
- RALPH_GID=${RALPH_GID:-1000}
volumes:
- ./:/workspace
# Optional: mount git config for commits
# - ~/.gitconfig:/home/ralph/.gitconfig:ro
# Optional: mount SSH keys for git push
# - ~/.ssh:/home/ralph/.ssh:ro
command: ["ralph", "--help"]