This commit is contained in:
2026-03-08 19:18:59 +07:00
commit 80dd32db1d
10 changed files with 453 additions and 0 deletions

23
docker-compose.yml Normal file
View File

@@ -0,0 +1,23 @@
version: '3.8'
services:
tradingview:
build:
context: .
dockerfile: Dockerfile
container_name: tradingview-server
ports:
- "9666:9666"
environment:
- PORT=9666
- FILES_DIR=/app/files
volumes:
# 如果需要动态更新文件,可以挂载 files 目录
- ./files:/app/files:ro
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9666/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s