It is based on php:7.4-apache and has pre-installed Dokuwiki. You need do nothing else to start your Dokuwiki journey with our docker image.
We also provide the supports for subdirectory and LDAP auth way, which help you to integrate with existed sites and LDAP service.
docker pull shuosc/dokuwiki from Docker Hub in US.docker pull registry.cn-shanghai.aliyuncs.com/shuosc/dokuwiki from Aliyun Container Registry (ACR) in China.docker build . -t shuosc/dokuwiki from Dockerfile.docker run -ti -d run --name dokuwiki shuosc/dokuwiki:latest
docker run -ti -d run --name dokuwiki -p 80:80 -v data:opt/data -v log:/var/log/apache2 -e DIR=wiki shuosc/dokuwiki:latest
# docker-compose.yml
version: '3'
services:
dokuwiki:
image: shuosc/dokuwiki:latest
ports:
- 80:80
environment:
- DIR=wiki
volumes:
- ./data:/opt/data
- ./log:/var/log/apache2
docker-compose up -d
After running the container with the above, you can refer to http://localhost/wiki to check it.
The default admin username & password are both admin. Considering the security, please modify it while you are logged in.
docker-compose.yml, and /wiki is the default. If you don't want to use subdirectory, you can just ignore it.latest tag of image is the latest development version.Thanks DockerHub and ACR for providing free Docker image resitry. Thanks Github for providing source code hosting and CI/CD tools. Thanks Dokuwiki for developing so elegant Dokuwiki.
本镜像是基于 php:7.4-apache 镜像进行构建,采用预安装的方式呈现。使用该镜像无须做任何安装操作即可开始 Dokuwiki 之旅。
本镜像还提供了对二级目录部署方式、LDAP 认证方式的支持,可以快速与团队内部已有的站点、认证方式集成使用。
这里提供了三种方式获取镜像:
docker pull shuosc/dokuwiki 从 Docker Hub(美国) 拉取。docker pull registry.cn-shanghai.aliyuncs.com/shuosc/dokuwiki 从阿里云容器镜像服务(上海)拉取。docker build . -t shuosc/dokuwiki 从 Dockerfile 手动构建。docker run -ti -d run --name dokuwiki shuosc/dokuwiki:latest
docker run -ti -d run --name dokuwiki -p 80:80 -v data:opt/data -v log:/var/log/apache2 -e DIR=wiki shuosc/dokuwiki:latest
# docker-compose.yml
version: '3'
services:
dokuwiki:
image: shuosc/dokuwiki:latest
ports:
- 80:80
environment:
- DIR=wiki
volumes:
- ./data:/opt/data
- ./log:/var/log/apache2
docker-compose up -d
访问 http://localhost/wiki/ 即可,默认管理员用户名和密码均为 admin。出于安全考虑,请务必在登录后修改默认密码。
DIR 设定的,如果不想使用子目录则无需设置该变量。latest 标签是最新开发版本。vendor 目录禁止访问限制。感谢 Dockerhub 和 ACR 为我们提供了镜像托管,感谢 Github 为我们提供了代码托管和 CI/CD 环境,感谢 Dokuwiki 团队开发了优雅的 Dokuwiki。
Content type
Image
Digest
sha256:af616b9da…
Size
196.3 MB
Last updated
about 2 months ago
docker pull shuosc/dokuwiki