Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (56 loc) · 1.46 KB
/
Copy pathdocker-compose.yml
File metadata and controls
60 lines (56 loc) · 1.46 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
48
49
50
51
52
53
54
55
56
57
58
59
60
# ============================================
# Tapnow Studio Docker Compose 配置
# ============================================
# 使用方法:
# 启动: docker-compose up -d
# 停止: docker-compose down
# 查看日志: docker-compose logs -f
# 重建: docker-compose up -d --build
# ============================================
version: '3.8'
services:
tapnow:
build:
context: .
dockerfile: Dockerfile
container_name: tapnow-localserver
ports:
- "9527:9527"
volumes:
# 数据持久化
- tapnow_data:/app/data
# 可选: 挂载本地下载目录
# - ~/Downloads/TapnowStudio:/app/downloads
environment:
# 功能开关
- TAPNOW_ENABLE_FILE_SERVER=true
- TAPNOW_ENABLE_PROXY=true
- TAPNOW_ENABLE_COMFY=false
- TAPNOW_ENABLE_LOG=true
restart: unless-stopped
# 健康检查
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:9527/ping')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
web:
build:
context: .
dockerfile: Dockerfile.web
container_name: tapnow-web
ports:
- "8080:80"
depends_on:
- tapnow
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://localhost/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
volumes:
tapnow_data:
driver: local