init
This commit is contained in:
23
docker-compose.yml
Normal file
23
docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user