-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.simple.yml
More file actions
47 lines (44 loc) · 1.11 KB
/
docker-compose.simple.yml
File metadata and controls
47 lines (44 loc) · 1.11 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
# Docker Compose 简化版配置文件
# 仅包含: HTML2MD核心服务
services:
# HTML转Markdown服务
html2md:
build:
context: .
dockerfile: Dockerfile
container_name: html2md-service
restart: unless-stopped
environment:
# 服务配置
- HTTP_PORT=8080
- GRPC_PORT=9090
- ENVIRONMENT=production
- SERVICE_NAME=html2md
- SERVICE_VERSION=1.0.0
# 日志配置
- LOG_LEVEL=info
- LOG_FORMAT=json
- LOG_OUTPUT=stdout
# 转换器配置
- CONVERTER_MAX_INPUT_SIZE=10485760 # 10MB
- CONVERTER_MAX_BATCH_SIZE=100
- CONVERTER_DEFAULT_PLUGINS=base,commonmark
- CONVERTER_TIMEOUT=30s
ports:
- "8080:8080" # HTTP API
- "9090:9090" # GRPC API
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/v1/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# 资源限制
deploy:
resources:
limits:
memory: 256M
cpus: '0.5'
reservations:
memory: 128M
cpus: '0.25'