Files
sms_forwarder/docker-compose.yml
zack 30c7e0062f 📚 重写 Docker 部署文档和 README
- 重写 docs/deployment.md,专注于 Docker 部署
- 更新 README.md,添加功能特性和管理命令
- 新增 docs/docker-quickstart.md 快速开始指南
- 优化文档结构,提供更清晰的部署流程
- 添加故障排除和维护指南
2025-07-17 19:46:11 +08:00

44 lines
933 B
YAML

version: '3.8'
services:
sms-forwarder:
build: .
container_name: sms-forwarder
ports:
- "12152:12152"
volumes:
- ./config.yaml:/app/config.yaml:ro
- ./logs:/app/logs
- ./data:/app/data
environment:
- CONFIG_PATH=/app/config.yaml
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:12152/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
deploy:
resources:
limits:
memory: 256M
cpus: '0.5'
reservations:
memory: 128M
cpus: '0.1'
# 可选:添加 Gotify 服务作为推送后端
gotify:
image: gotify/server
container_name: gotify
ports:
- "24545:80"
volumes:
- ./gotify_data:/app/data
environment:
- GOTIFY_DEFAULTUSER_PASS=admin
restart: unless-stopped
profiles:
- gotify