-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose-mcpo-editor.yml
More file actions
67 lines (67 loc) · 1.77 KB
/
docker-compose-mcpo-editor.yml
File metadata and controls
67 lines (67 loc) · 1.77 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
56
57
58
59
60
61
62
63
64
65
66
67
services:
config-downloader:
image: alpine:latest
container_name: mcpo-config-downloader
volumes:
- config-data:/tmp/config
restart: no
command: >
sh -c "
apk add --no-cache wget &&
if [ ! -f /tmp/config/config.json ]; then
wget -O /tmp/config/config.json https://raw.githubusercontent.com/chaoscode/MCPO/main/config.example.json
fi &&
# Ensure proper permissions for the web editor
chmod 666 /tmp/config/config.json
"
config-editor:
image: lscr.io/linuxserver/code-server:latest
container_name: mcpo-config-editor
restart: unless-stopped
ports:
- ${HOST_IP:-0.0.0.0}:18020:8443
volumes:
- config-data:/config/workspace/config
- editor-data:/config
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- PASSWORD=${EDITOR_PASS:-changeme}
- SUDO_PASSWORD=${EDITOR_SUDO_PASS:-changeme}
- DEFAULT_WORKSPACE=/config/workspace/config
depends_on:
config-downloader:
condition: service_completed_successfully
mcpo:
image: ghcr.io/open-webui/mcpo:main
container_name: mcpo
restart: unless-stopped
network_mode: host
volumes:
- config-data:/app/config
env_file:
- .env
depends_on:
config-downloader:
condition: service_completed_successfully
healthcheck:
test: curl --silent --fail "http://${HOST_IP:-0.0.0.0}:18021/docs" || exit 1
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
command:
- mcpo
- --config
- /app/config/config.json
- --host
- ${HOST_IP:-0.0.0.0}
- --port
- "18021"
- --api-key
- ${MCPO_API_KEY:-changeme}
volumes:
config-data: null
editor-data: null
networks: {}