aboutsummaryrefslogtreecommitdiffstats
path: root/compose.yaml
diff options
context:
space:
mode:
authorshu <nvcsadjkojf@outlook.com>2026-08-19 15:56:06 +0800
committershu <nvcsadjkojf@outlook.com>2026-08-19 15:56:06 +0800
commitca1a4a31706d0c03673fe4c414c645ed826b21c6 (patch)
treec412265a19dd4694c39aac65b6e1a8903a513978 /compose.yaml
parent490d41f154615a52734f117d7d7bda5a9331e303 (diff)
精简 Wiki 构建与运行方式
将浏览器端工具整理为 utilities 插件,移除 Docker、Org GTD 和 files API,并补充单文件构建及 Node.js 运行入口。
Diffstat (limited to 'compose.yaml')
-rw-r--r--compose.yaml100
1 files changed, 0 insertions, 100 deletions
diff --git a/compose.yaml b/compose.yaml
deleted file mode 100644
index 5a909c3..0000000
--- a/compose.yaml
+++ /dev/null
@@ -1,100 +0,0 @@
-name: tdwiki
-
-services:
- tiddlywiki:
- build:
- context: .
- dockerfile: docker/tiddlywiki/Dockerfile
- restart: unless-stopped
- init: true
- user: "${PUID:-1000}:${PGID:-1000}"
- command:
- - .
- - --listen
- - host=0.0.0.0
- - port=8080
- - gzip=yes
- - use-browser-cache=yes
- volumes:
- - ./tiddlers:/wiki/tiddlers
- - ./files:/wiki/files:ro
- - ./tiddlywiki.info:/wiki/tiddlywiki.info:ro
- expose:
- - "8080"
- healthcheck:
- test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1:8080/"]
- interval: 10s
- timeout: 3s
- retries: 12
- start_period: 10s
- security_opt:
- - no-new-privileges:true
-
- redis:
- image: redis:7.4-alpine
- restart: unless-stopped
- command: ["redis-server", "--save", "60", "1", "--loglevel", "warning"]
- volumes:
- - redis-data:/data
- healthcheck:
- test: ["CMD", "redis-cli", "ping"]
- interval: 10s
- timeout: 3s
- retries: 5
- security_opt:
- - no-new-privileges:true
-
- authelia:
- image: authelia/authelia:4.39.20
- restart: unless-stopped
- depends_on:
- redis:
- condition: service_healthy
- volumes:
- - ./docker/authelia:/config:ro
- - ./data/authelia:/var/lib/authelia
- - ./secrets:/secrets:ro
- environment:
- TZ: "${TZ:-Asia/Shanghai}"
- AUTHELIA_IDENTITY_VALIDATION_RESET_PASSWORD_JWT_SECRET_FILE: /secrets/authelia_jwt_secret
- AUTHELIA_SESSION_SECRET_FILE: /secrets/authelia_session_secret
- AUTHELIA_STORAGE_ENCRYPTION_KEY_FILE: /secrets/authelia_storage_encryption_key
- expose:
- - "9091"
- healthcheck:
- test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1:9091/api/health"]
- interval: 10s
- timeout: 3s
- retries: 12
- start_period: 10s
- security_opt:
- - no-new-privileges:true
-
- caddy:
- build:
- context: .
- dockerfile: docker/caddy/Dockerfile
- args:
- GOPROXY: "${GOPROXY:-https://goproxy.cn,direct}"
- restart: unless-stopped
- depends_on:
- tiddlywiki:
- condition: service_healthy
- authelia:
- condition: service_healthy
- environment:
- BASE_DOMAIN: "${BASE_DOMAIN:-tdwiki.home.arpa}"
- ports:
- - "8081:80"
- - "443:443"
- - "443:443/udp"
- volumes:
- - ./docker/caddy/Caddyfile:/etc/caddy/Caddyfile:ro
- - ./files:/srv/files
- - ./data/caddy/data:/data
- - ./data/caddy/config:/config
- security_opt:
- - no-new-privileges:true
-
-volumes:
- redis-data: