A secure, rootless Docker image for DokuWiki with persistent storage support.
- 🐳 Based on official PHP 8.3 Apache image
- 🔒 Runs as non-root user (www-data)
- ⚙️ Full environment variable configuration
- 📁 Persistent storage for configuration, data, plugins and templates
# Create persistent volume
docker volume create dokuwiki_data
# Run container with basic configuration
docker run -d \
--name dokuwiki \
-p 8080:80 \
-v dokuwiki_data:/dokuwiki \
-e DOKUWIKI_TITLE="My Wiki" \
-e DOKUWIKI_SUPERUSER=admin \
-e DOKUWIKI_SUPERPASS=mysecurepass \
-e DOKUWIKI_FULLNAME="Wiki Admin" \
-e [email protected] \
--user www-data \
vndmtrx/dokuwiki:latest
Check the docker-compose.yml file in the repository for a complete example with all available options.
Variable | Install.php Equivalent | Description |
---|---|---|
TZ | - | Container timezone |
DOKUWIKI_FORCE_CONF | - | Force configuration override |
DOKUWIKI_TITLE | Wiki Name | Site title |
DOKUWIKI_TAGLINE | Tag Line | Site description |
DOKUWIKI_LANG | Language | Interface language |
DOKUWIKI_LICENSE | License | Content license |
DOKUWIKI_BASEURL | Base URL | Wiki URL |
DOKUWIKI_DATEFORMAT | - | Date format |
DOKUWIKI_USEREWRITE | - | Enable URL rewriting |
Variable | Install.php Equivalent | Description |
---|---|---|
DOKUWIKI_SUPERUSER | Superuser | Admin username |
DOKUWIKI_SUPERPASS | Password | Admin password |
DOKUWIKI_FULLNAME | Real Name | Admin full name |
DOKUWIKI_EMAIL | Admin email |
Variable | Install.php Equivalent | Description | Default |
---|---|---|---|
DOKUWIKI_USEACL | Use ACL | Enable access control | - |
DOKUWIKI_AUTHTYPE | Authentication Backend | Auth mechanism | - |
DOKUWIKI_DEFAULTGROUP | Initial Group | Default group for new users | - |
DOKUWIKI_DISABLEACTIONS | Disabled Actions | Disabled features | - |
DOKUWIKI_ACL_POLICY | Initial ACL policy | Access policy (open/public/closed) | open |
If environment variables are provided:
- The wiki will be pre-configured with these settings
- The install.php file will be automatically removed for security
- No manual configuration will be needed
If no environment variables are set:
- The install.php wizard will be available at first access
- Manual configuration will be required through the web interface
- The install.php will remain until manual configuration is completed
The /dokuwiki
volume contains:
conf/
: Configuration filesdata/
: Wiki data and pagesplugins/
: DokuWiki pluginstpl/
: Templates
- Runs as non-root user (www-data)
- No new privileges allowed
- Minimal base image and dependencies
- Automatic removal of install.php after configuration when using environment variables
GNU Affero General Public License v3.0
This project builds upon other open source software:
- DokuWiki: GNU General Public License v2.0
- PHP: PHP License v3.01