1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00

add dokuwiki-arm

This commit is contained in:
kev 2016-04-05 19:33:25 +08:00
parent 796a3b9a81
commit 4c07b9d83e
5 changed files with 94 additions and 1 deletions

View File

@ -37,6 +37,7 @@ dockerfiles
- [x] dnscrypt-proxy
- [x] dnscrypt-wrapper
- [x] dokuwiki :+1:
- [x] dokuwiki-arm :+1:
- [x] ferm
- [x] ffserver :beetle:
- [x] fteproxy :+1:

38
dokuwiki/arm/Dockerfile Normal file
View File

@ -0,0 +1,38 @@
#
# Dockerfile for dokuwiki-arm
#
FROM easypi/alpine-arm
MAINTAINER EasyPi Software Foundation
WORKDIR /var/www/html
RUN set -xe \
&& apk add -U ca-certificates \
gzip \
nginx \
php-fpm \
php-openssl \
php-pdo_sqlite \
php-sqlite3 \
php-xml \
php-zlib \
tar \
&& wget -O- http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz | tar xz --strip 1 \
&& chown -R nobody:nobody . \
&& rm -rf /var/cache/apk/*
COPY nginx.conf /etc/nginx/nginx.conf
VOLUME /var/www/html/conf \
/var/www/html/data/pages \
/var/www/html/data/meta \
/var/www/html/data/media \
/var/www/html/data/media_attic \
/var/www/html/data/media_meta \
/var/www/html/data/attic \
/var/www/html/lib/plugins
EXPOSE 80
CMD php-fpm && nginx -g 'daemon off;'

View File

@ -0,0 +1,5 @@
dokuwiki:
image: easypi/dokuwiki-arm
ports:
- "8000:80"
restart: always

49
dokuwiki/arm/nginx.conf Normal file
View File

@ -0,0 +1,49 @@
worker_processes 4;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name _;
client_max_body_size 4M;
client_body_buffer_size 128k;
root /var/www/html;
index doku.php;
location ~ /(data/|conf/|bin/|inc/) { deny all; }
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires 31536000s;
add_header Pragma "public";
add_header Cache-Control "max-age=31536000, public, must-revalidate, proxy-revalidate";
log_not_found off;
}
location / { try_files $uri $uri/ @dokuwiki; }
location @dokuwiki {
rewrite ^/_media/(.*) /lib/exe/fetch.php?media=$1 last;
rewrite ^/_detail/(.*) /lib/exe/detail.php?media=$1 last;
rewrite ^/_export/([^/]+)/(.*) /doku.php?do=export_$1&id=$2 last;
rewrite ^/(.*) /doku.php?id=$1&$args last;
}
location ~ \.php$ {
try_files $uri $uri/ /doku.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param REDIRECT_STATUS 200;
fastcgi_pass 127.0.0.1:9000;
}
}
}

View File

@ -3,7 +3,7 @@ tinc
![](https://badge.imagelayers.io/vimagick/tinc:latest.svg)
[`tinc`][1] is a Virtual Private Network (VPN) daemon that uses tunnelling and
[tinc][1] is a Virtual Private Network (VPN) daemon that uses tunnelling and
encryption to create a secure private network between hosts on the Internet.
To use this image, you need to: