We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07cfbef commit 4fd8123Copy full SHA for 4fd8123
1 file changed
docker-compose.yml
@@ -0,0 +1,28 @@
1
+version: '3.8'
2
+
3
+services:
4
+ fixit:
5
+ # 构建镜像(如果你已 push 到仓库,可替换为 image: yourname/fixit:latest)
6
+ build: .
7
+ container_name: fixit-blog
8
+ restart: always
9
+ ports:
10
+ - "8080:80"
11
+ environment:
12
+ - BASE_URL=https://your-domain.com # 可选,覆盖站点 baseURL
13
+ volumes:
14
+ # === 方式一:只覆盖部分内容(推荐新手)===
15
+ - ./my-content:/data/content # 自定义文章目录
16
+ - ./my-config.toml:/config/config.toml # 自定义配置文件
17
+ # - ./my-static:/data/static # 自定义静态文件
18
+ # - ./my-layouts:/data/layouts # 自定义模板
19
20
+ # === 方式二:使用完整站点(高级用户)===
21
+ # - ./my-full-site:/site # 整个站点源码(包含 config.toml、content、themes 等)
22
23
+ # 开发模式(实时预览,可选):
24
+ # command: hugo server --bind 0.0.0.0 --port 80 --disableFastRender
25
+ # ports:
26
+ # - "1313:80"
27
+ # volumes:
28
+ # - ./my-full-site:/site
0 commit comments