-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (37 loc) · 936 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (37 loc) · 936 Bytes
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
version: '3.8'
services:
babysitter:
build:
context: .
dockerfile: Dockerfile
image: babysitter:latest
container_name: babysitter
# Required: Pass your Anthropic API key
environment:
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- PROMPT=${PROMPT:-}
# Mount current directory as /workspace for project access
volumes:
- ./:/workspace
# Enable interactive mode
stdin_open: true
tty: true
# Working directory inside container
working_dir: /workspace
# Alternative: Run with a specific prompt
babysitter-task:
build:
context: .
dockerfile: Dockerfile
image: babysitter:latest
environment:
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- PROMPT=${PROMPT}
volumes:
- ./:/workspace
stdin_open: true
tty: true
working_dir: /workspace
# Only start when explicitly called
profiles:
- task