-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (34 loc) · 992 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (34 loc) · 992 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
services:
orchids-api:
build:
context: .
dockerfile: Dockerfile
image: opus-api:latest
container_name: orchids-api
restart: unless-stopped
ports:
- "${PORT:-3002}:3002"
volumes:
# 持久化数据库
- ./data:/app/data
# 持久化调试日志
- ./debug:/app/debug
environment:
- PORT=${PORT:-3002}
- DEBUG_ENABLED=${DEBUG_ENABLED:-true}
- ADMIN_USER=${ADMIN_USER:-admin}
- ADMIN_PASS=${ADMIN_PASS:-admin123}
- ADMIN_PATH=${ADMIN_PATH:-/admin}
- SESSION_ID=${SESSION_ID:-}
- CLIENT_COOKIE=${CLIENT_COOKIE:-}
- CLIENT_UAT=${CLIENT_UAT:-}
- PROJECT_ID=${PROJECT_ID:-}
- USER_ID=${USER_ID:-}
- AGENT_MODE=${AGENT_MODE:-claude-opus-4.5}
- EMAIL=${EMAIL:-}
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3002/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s