创建dokuwiki 目录
mkdir -p /data/dokuwiki/data
#更新为容器的 用户和组,给权限给容器
chown 1001.0 /data/dokuwiki/data
vi /data/dokuwiki/docker-compose.yml
version: '3'
services:
dokuwiki:
image: bitnami/dokuwiki:20200729
container_name: dokuwiki
restart: always
ports:
- '8083:8080'
- '443:8443'
volumes:
- './data:/bitnami'
environment:
- DOKUWIKI_WIKI_NAME=wikititle
- DOKUWIKI_FULL_NAME=xxxx
- DOKUWIKI_EMAIL=xxxx@qq.com
- DOKUWIKI_USERNAME=xxxx
- DOKUWIKI_PASSWORD=xx
networks:
- dokuwiki-tier
restart: always
logging:
driver: json-file
options:
max-size: "2m"
max-file: "10"
networks:
dokuwiki-tier:
external: false
运行
cd /data/dokuwiki
docker-compose up -d