-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (49 loc) · 1.23 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (49 loc) · 1.23 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
version: '3.8'
services:
# Anthropic 原生模式
factory-proxy-openai-anthropic:
build:
context: .
target: anthropic
container_name: factory-proxy-openai-anthropic
ports:
- "8001:8000"
environment:
- PORT=8000
- FACTORY_API_KEY=${FACTORY_API_KEY}
- PROXY_API_KEY=${PROXY_API_KEY}
- CONFIG_PATH=config.json
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8000/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
networks:
- factory-network
# OpenAI 兼容模式
factory-proxy-openai:
build:
context: .
target: openai
container_name: factory-proxy-openai
ports:
- "8003:8003"
environment:
- PORT=8003
- FACTORY_API_KEY=${FACTORY_API_KEY}
- PROXY_API_KEY=${PROXY_API_KEY}
- CONFIG_PATH=config.json
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8003/v1/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
networks:
- factory-network
networks:
factory-network:
driver: bridge