forked from day50-dev/Petsitter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (33 loc) · 1.35 KB
/
Copy pathdocker-compose.yml
File metadata and controls
34 lines (33 loc) · 1.35 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
services:
sub2api-auditer:
image: ghcr.io/coderdoubleflower/sub2apiauditer:latest
pull_policy: always
container_name: sub2api-auditer
restart: unless-stopped
ports:
- "${AUDITER_PORT:-8080}:8080"
environment:
# 服务运行配置
CONFIG_PATH: /data/config.json
TRACE_DB_PATH: ${TRACE_DB_PATH:-/data/auditer.db}
ADMIN_TOKEN: ${ADMIN_TOKEN:-}
AUDITER_TOKEN: ${AUDITER_TOKEN:-}
LOG_LEVEL: ${LOG_LEVEL:-info}
MAX_REQUEST_BODY_BYTES: ${MAX_REQUEST_BODY_BYTES:-2097152}
MAX_INPUT_CHARS: ${MAX_INPUT_CHARS:-200000}
LOG_CAPACITY: ${LOG_CAPACITY:-100}
HTTP_MAX_CONNECTIONS: ${HTTP_MAX_CONNECTIONS:-200}
HTTP_MAX_KEEPALIVE: ${HTTP_MAX_KEEPALIVE:-50}
# 可选:首次启动时通过 .env 提供上游默认配置。
# 网页保存配置后,以 /data/config.json 中的配置为准。
UPSTREAM_BASE_URL: ${UPSTREAM_BASE_URL:-}
UPSTREAM_API_KEY: ${UPSTREAM_API_KEY:-}
UPSTREAM_MODEL: ${UPSTREAM_MODEL:-}
UPSTREAM_TIMEOUT_SECONDS: ${UPSTREAM_TIMEOUT_SECONDS:-20}
UPSTREAM_MAX_TOKENS: ${UPSTREAM_MAX_TOKENS:-256}
AUDIT_PROMPT: ${AUDIT_PROMPT:-}
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
# 当前目录持久化:配置写入 config.json,最近 100 条处理详情写入 auditer.db。
- ./data:/data