-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
97 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,20 +3,14 @@ FROM php:8.3-apache | |
LABEL maintainer="Eduardo N.S.R. <[email protected]>" \ | ||
description="DokuWiki with essential plugins" \ | ||
org.opencontainers.image.title="DokuWiki Docker Image" \ | ||
org.opencontainers.image.description="DokuWiki with essential plugins pre-installed and persistent storage support" \ | ||
org.opencontainers.image.description="DokuWiki with pre-installed essential plugins and persistent storage support" \ | ||
org.opencontainers.image.authors="Eduardo N.S.R. <[email protected]>" \ | ||
org.opencontainers.image.version="1.0.0" \ | ||
org.opencontainers.image.licenses="AGPL-3.0" \ | ||
org.opencontainers.image.url="https://hub.docker.com/r/vndmtrx/dokuwiki" \ | ||
org.opencontainers.image.source="https://github.com/vndmtrx/dokuwiki-docker" \ | ||
org.opencontainers.image.documentation="https://hub.docker.com/r/vndmtrx/dokuwiki" | ||
|
||
ENV OS_NAME="debian" \ | ||
OS_ARCH="amd64" \ | ||
OS_FLAVOUR="bookworm" \ | ||
APP_VERSION="stable" \ | ||
BITNAMI_APP_NAME="dokuwiki" | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
libldap2-dev \ | ||
libzip-dev \ | ||
|
@@ -29,30 +23,35 @@ RUN apt-get update && apt-get install -y \ | |
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ | ||
&& find /var/cache/apt/archives -type f -delete | ||
|
||
WORKDIR /var/www/html | ||
|
||
COPY files/.htaccess . | ||
RUN { \ | ||
echo 'output_buffering = 4096'; \ | ||
echo 'memory_limit = 256M'; \ | ||
echo 'max_execution_time = 60'; \ | ||
echo 'upload_max_filesize = 50M'; \ | ||
echo 'post_max_size = 50M'; \ | ||
} > /usr/local/etc/php/conf.d/dokuwiki.ini | ||
|
||
WORKDIR /var/www/html | ||
|
||
RUN mkdir /dokuwiki \ | ||
&& curl -O https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz \ | ||
RUN curl -O https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz \ | ||
&& tar xzf dokuwiki-stable.tgz --strip-components=1 \ | ||
&& rm dokuwiki-stable.tgz \ | ||
&& mv conf /dokuwiki/ \ | ||
&& mv data /dokuwiki/ \ | ||
&& mv lib/plugins /dokuwiki/plugins \ | ||
&& mv lib/tpl /dokuwiki/tpl \ | ||
&& rm dokuwiki-stable.tgz | ||
|
||
RUN curl -L https://github.com/reactivematter/dokuwiki-template-minimal/archive/master.tar.gz -o minimal.tgz \ | ||
&& mkdir -p lib/tpl/minimal \ | ||
&& tar xzf minimal.tgz --strip-components=1 -C lib/tpl/minimal \ | ||
&& rm minimal.tgz \ | ||
&& chown -R www-data:www-data . \ | ||
&& a2enmod rewrite | ||
|
||
COPY --chown=www-data:www-data files/ . | ||
|
||
RUN mkdir -p /dokuwiki \ | ||
&& ln -s /dokuwiki/conf conf \ | ||
&& ln -s /dokuwiki/data data \ | ||
&& ln -s /dokuwiki/plugins lib/plugins \ | ||
&& ln -s /dokuwiki/tpl lib/tpl \ | ||
&& chown -R www-data:www-data /var/www/html /dokuwiki \ | ||
&& a2enmod rewrite | ||
|
||
RUN { \ | ||
echo 'upload_max_filesize = 16M'; \ | ||
echo 'post_max_size = 16M'; \ | ||
echo 'memory_limit = 128M'; \ | ||
} > /usr/local/etc/php/conf.d/dokuwiki.ini | ||
&& ln -s /dokuwiki/tpl lib/tpl | ||
|
||
EXPOSE 80 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
====== Navigation Menu ====== | ||
|
||
===== Documentation ===== | ||
* [[https://www.dokuwiki.org/|Official Documentation]] | ||
* [[https://www.dokuwiki.org/wiki:syntax|Syntax Guide]] | ||
* [[https://www.dokuwiki.org/dokuwiki|About DokuWiki]] | ||
|
||
===== Useful Links ===== | ||
* [[https://www.dokuwiki.org/config|Settings]] | ||
* [[https://www.dokuwiki.org/plugins|Plugins]] | ||
* [[https://www.dokuwiki.org/template|Templates]] | ||
* [[https://www.dokuwiki.org/faq|FAQ]] | ||
|
||
===== Quick Links ===== | ||
* [[?do=recent|Recent Changes]] | ||
* [[?do=index|Wiki Index]] | ||
* [[?do=search|Search]] | ||
|
||
---- | ||
|
||
[[?do=edit&page=sidebar|Edit this Sidebar]] | ||
|
||
[[https://www.dokuwiki.org/sidebar|Help about Sidebar configuration]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
~~NOTOC~~ | ||
====== Welcome to vndmtrx/dokuwiki Instalation ====== | ||
|
||
===== About this Project ===== | ||
|
||
This is an optimized Docker image of DokuWiki that complements the official image with additional features, such as environment variable configuration support (e.g., LDAP), pre-installed essential plugins, and other improvements that facilitate deployment. | ||
|
||
You can find the project at: | ||
* GitHub Repository ([[https://github.com/vndmtrx/dokuwiki-docker|vndmtrx/dokuwiki-docker]]) | ||
* Docker Hub Image ([[https://hub.docker.com/r/vndmtrx/dokuwiki|vndmtrx/dokuwiki]]) | ||
|
||
==== Why Use this Image? ==== | ||
|
||
* **Easy to Configure**: Environment variable support | ||
* **Essential Plugins**: Basic set of useful plugins and templates | ||
* **No Database**: Everything is saved in text files | ||
* **Version Control**: All changes are logged | ||
* **Containerized**: Easy to deploy and maintain with Docker | ||
* **Secure**: Runs as non-root user (www-data) | ||
|
||
===== Next Steps ===== | ||
|
||
Now that you've installed your wiki, here are some suggestions on what to do: | ||
|
||
* Read the [[https://www.dokuwiki.org/wiki:syntax|syntax guide]] to learn how to format text | ||
* [[https://www.dokuwiki.org/auth|Configure authentication]] for users (including LDAP if needed) | ||
* [[https://www.dokuwiki.org/acl|Set access permissions]] for pages | ||
* Configure regular Docker volume backups | ||
* Explore [[?do=recent|recent changes]] and use the [[?do=search|search]] to navigate content | ||
|
||
===== Contribute to the Project ===== | ||
|
||
This Docker image is an open source project and you can contribute in several ways: | ||
|
||
* **Report Issues**: Found a bug? Open an [[https://github.com/vndmtrx/dokuwiki-docker/issues|issue on GitHub]] | ||
* **Contribute Code**: Fork and submit your [[https://github.com/vndmtrx/dokuwiki-docker/pulls|pull request]] | ||
* **Improve Documentation**: Help other users by documenting your experiences | ||
* **Share**: Spread the word about this project | ||
|
||
===== Licenses ===== | ||
|
||
This project is based on other open source projects: | ||
|
||
* **This Docker Image**: [[https://github.com/vndmtrx/dokuwiki-docker/blob/main/LICENSE|GNU Affero General Public License v3.0]] | ||
* **DokuWiki**: [[https://github.com/dokuwiki/dokuwiki|GNU General Public License v2.0]] - [[https://www.dokuwiki.org/|Website]] | ||
* **PHP**: [[https://github.com/php/php-src|PHP License v3.01]] - [[https://www.php.net/|Website]] | ||
|
||
---- | ||
|
||
To edit this start page and begin customizing your wiki, click on [[?do=edit&page=start|Edit this page]]. |