forked from meta-introspector/call-auto-gpt
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
49 lines (47 loc) · 1.42 KB
/
docker-compose.yml
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
version: '3'
services:
mockopenai: # interface
healthcheck:
test: curl --fail http://127.0.0.1:8080/v1/models
interval: 5s
timeout: 5s
retries: 5
environment:
- GITHUB_PAT=${GITHUB_PAT}
- GITHUB_REPO=${GITHUB_REPO}
image: h4ckermike/mockopenai
ports:
- "8080:5000"
autogpt: #the beast
extra_hosts:
- "host.docker.internal:host-gateway"
entrypoint: |
bash -c "poetry run autogpt --install-plugin-deps \
--skip-news \
--ai-name "\'${AI_NAME}\'" \
--ai-role "\'${AI_ROLE}\'" \
--ai-goal "\'${AI_GOAL_1}\'" \
--ai-goal "\'${AI_GOAL_2}\'" \
--ai-goal "\'${AI_GOAL_3}\'" \
--ai-goal "\'${AI_GOAL_4}\'" \
-y --continuous \
--continuous-limit 5"
# uncomment thse next 3 lines for debugging
#entrypoint: /bin/bash
#stdin_open: true # docker run -i
#tty: true # docker run -t
environment:
- GITHUB_PAT="${GITHUB_PAT}"
- AI_NAME="${AI_NAME}"
- AI_ROLE="${AI_ROLE}"
- AI_GOAL_1="${AI_GOAL_1}"
- AI_GOAL_2="${AI_GOAL_2}"
- AI_GOAL_3="${AI_GOAL_3}"
- AI_GOAL_4="${AI_GOAL_4}"
- GITHUB_REPO="meta-introspector/call-auto-gpt"
- OPENAI_API_KEY=${OPENAI_API_KEY}
#- OPENAI_API_BASE=http://mockopenai:8080/v1
#- OPENAI_API_BASE=http://host.docker.internal:8080/v1
image: h4ckermike/autogpt
depends_on:
- mockopenai