PukiWiki Plus for Docker container based on official PHP image.
1.2K
PukiWiki Plus for Docker container.
$ curl -o docker-compose.yml https://raw.githubusercontent.com/ryu-sato/pukiwiki-plus-docker-compose/master/docker-compose.yml
$ docker-compose up -d
If you have old contents of PukiWiki Plus in "/var/www/html/wiki", edit volume setting of docker-compose.yml to use these contents.
$ curl -o docker-compose.yml https://raw.githubusercontent.com/ryu-sato/pukiwiki-plus-docker-compose/master/docker-compose.yml
$ sed -i "/- 'wiki_data:/ s|wiki_data:|/var/www/html/wiki:|" docker-compose.yml
$ docker-compose up -d
If you want to access pukiwiki plus with sub directory path like http://localhost/wiki/,
running with SUBDIR environment.
$ docker run --env SUBDIR=/wiki --name my-pukiwiki-plus ryu310/pukiwiki-plus
Edit Dockerfile and rebuild Docker image.
# Dockerfile
: <snip>
# Install pukiwiki-plus plugin
## ls2_1
## ref: http://pukiwiki.sonots.com/?Old%2FPlugin%2Fls2_1.inc.php
ENV PUKIWIKIPLUS_PLUGIN_LS2_1_VER 27
RUN cd ${PUKIWIKIPLUS_PLUGINDIR} \
&& curl -o ls2_1.inc.php -SL "http://pukiwiki.sonots.com/?plugin=attach&refer=Old%2FPlugin%2Fls2_1.inc.php&openfile=ls2_1.inc.php.${PUKIWIKIPLUS_PLUGIN_LS2_1_VER}"
: <snip>
And then, edit docker-compose.yml to use new image.
# docker-compose.yml
version: '2'
services:
wiki:
image: 'ryu310/pukiwiki-plus:7-apache' # EDIT IMAGE'S TAG !!!
build:
context: .
dockerfile: Dockerfile
volumes:
- 'wiki_data:/var/www/html'
ports:
- 80:80
volumes:
wiki_data:
$ docker-compose up --build
Content type
Image
Digest
Size
357.2 MB
Last updated
over 8 years ago
docker pull ryu310/pukiwiki-plus