forked from 666ghj/MiroFish
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (66 loc) · 2.45 KB
/
docker-compose.yml
File metadata and controls
68 lines (66 loc) · 2.45 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
68
services:
mirofish:
build: .
container_name: mirofish
restart: unless-stopped
depends_on:
codex-proxy:
condition: service_healthy
env_file:
- .env
environment:
- HOME=/home/deploy
- PATH=/home/deploy/.local/bin:/home/deploy/.local/share/claude/versions/2.1.76:/usr/local/bin:/usr/bin:/bin
- NODE_PATH=/home/deploy/.local/lib/node_modules
- LLM_PROVIDER=openai
- LLM_BASE_URL=http://codex-proxy:11435/v1
- LLM_API_KEY=codex
- LLM_MODEL_NAME=codex
volumes:
- ./backend/uploads:/app/backend/uploads
- ./backend/data:/app/backend/data
# Mount CLI tools and their auth from host
- /home/deploy/.local/bin:/home/deploy/.local/bin:ro
- /home/deploy/.local/share/claude:/home/deploy/.local/share/claude:ro
- /home/deploy/.local/lib/node_modules:/home/deploy/.local/lib/node_modules:ro
- /home/deploy/.claude:/home/deploy/.claude:ro
- /home/deploy/.codex:/home/deploy/.codex:ro
- /home/deploy/.claude.json:/home/deploy/.claude.json:ro
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik"
- "traefik.http.routers.synth-https.rule=Host(`synth.scty.org`)"
- "traefik.http.routers.synth-https.entrypoints=https"
- "traefik.http.routers.synth-https.tls=true"
- "traefik.http.routers.synth-https.tls.certresolver=letsencrypt"
- "traefik.http.services.synth.loadbalancer.server.port=5001"
- "traefik.http.routers.synth-http.rule=Host(`synth.scty.org`)"
- "traefik.http.routers.synth-http.entrypoints=http"
- "traefik.http.routers.synth-http.middlewares=redirect-to-https"
networks:
- traefik
codex-proxy:
build: ./codex-proxy
container_name: mirofish-codex-proxy
restart: unless-stopped
environment:
- PATH=/usr/local/bin:/usr/bin:/bin:/home/deploy/.local/bin
- NODE_PATH=/home/deploy/.local/lib/node_modules
- CODEX_PROXY_WORKERS=${CODEX_PROXY_WORKERS:-4}
- CODEX_PROXY_TIMEOUT=${CODEX_PROXY_TIMEOUT:-180}
ports:
- "11435:11435"
volumes:
- /home/deploy/.local/bin:/home/deploy/.local/bin:ro
- /home/deploy/.local/lib/node_modules:/home/deploy/.local/lib/node_modules:ro
- /home/deploy/.codex:/root/.codex:ro
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:11435/health"]
interval: 10s
timeout: 5s
retries: 3
networks:
- traefik
networks:
traefik:
external: true