Skip to content

Commit

Permalink
Change mount dir of Halo container to ./halo2 (#258)
Browse files Browse the repository at this point in the history
#### What this PR does / why we need it:

目前 Halo 容器挂载目录配置 `./:/root/.halo2` 容易让用户无意在 Halo 工作目录添加一些其他无关目录,例如:Nginx 也挂载到当前目录。这可能会导致无法正常使用备份功能。目前也无法预知未来可能会发生什么样的错误。


#### Which issue(s) this PR fixes:

Fixes halo-dev/halo#4637

#### Does this PR introduce a user-facing change?

```release-note
修改 Halo 容器工作目录挂载目标目录为 ./halo2
```
  • Loading branch information
JohnNiang authored Sep 27, 2023
1 parent 587cd95 commit f1e2d27
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions docs/getting-started/install/docker-compose.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ import DockerArgs from "./slots/docker-args.md"
networks:
halo_network:
volumes:
- ./:/root/.halo2
- ./halo2:/root/.halo2
ports:
- "8090:8090"
healthcheck:
Expand Down Expand Up @@ -126,7 +126,7 @@ import DockerArgs from "./slots/docker-args.md"
networks:
halo_network:
volumes:
- ./:/root/.halo2
- ./halo2:/root/.halo2
ports:
- "8090:8090"
healthcheck:
Expand Down Expand Up @@ -185,7 +185,7 @@ import DockerArgs from "./slots/docker-args.md"
container_name: halo
restart: on-failure:3
volumes:
- ./:/root/.halo2
- ./halo2:/root/.halo2
ports:
- "8090:8090"
healthcheck:
Expand All @@ -210,7 +210,7 @@ import DockerArgs from "./slots/docker-args.md"
restart: on-failure:3
network_mode: "host"
volumes:
- ./:/root/.halo2
- ./halo2:/root/.halo2
command:
# 修改为自己已有的 MySQL 配置
- --spring.r2dbc.url=r2dbc:pool:mysql://localhost:3306/halo
Expand Down Expand Up @@ -342,7 +342,7 @@ services:
container_name: halo
restart: on-failure:3
volumes:
- ./:/root/.halo2
- ./halo2:/root/.halo2
networks:
- traefik
- halo
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started/install/other/traefik.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ services:
container_name: halo
restart: on-failure:3
volumes:
- ./:/root/.halo2
- ./halo2:/root/.halo2
networks:
- traefik
- halo
Expand Down

1 comment on commit f1e2d27

@vercel
Copy link

@vercel vercel bot commented on f1e2d27 Sep 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

halo-docs – ./

halo-docs-halo-dev.vercel.app
halo-docs.vercel.app
docs.halo.run
halo-docs-git-main-halo-dev.vercel.app

Please sign in to comment.