wekan 的安装

1. 安装报错/etc/timezone/

1
ERROR: for wekan-db  Cannot start service wekandb: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/etc/timezone" to rootfs at "/etc/timezone": mount /etc/timezone:/etc/timezone (via /proc/self/fd/6), flags: 0x5001: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

在centos 7.6系统中,/etc/timezone/是文件夹而不是文件。

添加
echo 'Asia/Shanghai' > /etc/timezone/timezone

修改dockcer-compose.yml文件

1
2
3
4
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
......

修改为

1
2
3
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone/timezone:/etc/timezone:ro

2.修改 端口号

修改前

1
2
3
4
- 80:8080
.......

- ROOT_URL=http://localhost

修改后

1
2
3
4
- 8092:8080
.......

- ROOT_URL=http://localhost:8092

3. 修改映射文件

可根据自己的需要,将wekan-db、wekan-dump 修改为宿主机的路径。

1
2
- wekan-db:/data/db
- wekan-dump:/dump