-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (51 loc) · 1.39 KB
/
docker-compose.yml
File metadata and controls
55 lines (51 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Rein - Standalone Docker Compose
#
# Quick start:
# cp .env.example .env # add your API key
# docker compose up hello # run hello-world example
#
# Run any workflow:
# docker compose run --rm rein --agents-dir /workspace/agents workflow.yaml --no-ui
#
# Daemon mode (watches for tasks):
# docker compose up -d rein-daemon
services:
# Hello-world example (quickest way to try Rein)
hello:
build: .
command: ["--agents-dir", "/workspace/agents", "/workspace/workflow.yaml", "--no-ui"]
volumes:
- ./examples/01-hello-world:/workspace:ro
- rein-runs:/tmp/rein-runs
env_file: .env
environment:
- PYTHONUNBUFFERED=1
profiles: [default]
# One-off workflow execution (mount your project)
rein:
build: .
volumes:
- ${REIN_WORKSPACE:-.}:/workspace
- rein-runs:/tmp/rein-runs
working_dir: /workspace
env_file: .env
environment:
- PYTHONUNBUFFERED=1
profiles: [cli]
# Background daemon (watches agents/tasks/ for pending work)
rein-daemon:
build: .
container_name: rein-daemon
restart: unless-stopped
command: ["--daemon", "--agents-dir", "/agents"]
volumes:
- ${REIN_AGENTS_DIR:-./agents}:/agents
- rein-runs:/tmp/rein-runs
ports:
- "${REIN_WS_PORT:-8765}:8765"
env_file: .env
environment:
- PYTHONUNBUFFERED=1
profiles: [daemon]
volumes:
rein-runs: