jarmoni / docker-dokuwiki

Dokuwiki Docker-image based on Alpine + Nginx

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docker-dokuwiki

Motivation

Dokuwiki is quite useful in small (personal) environments. But migration of existing installations sometimes become painfull:

  • OS-Update/-Change
  • Data-Migration
  • ...

Goals

  • Personal use only (kind of 'desktop-app-replacement')
  • Lightweight Docker-based Dokuwiki-container which runs on all machines (Desktop, Notebook, 2nd Notebook,....)
  • Content is kept in GIT by use of gitbacked
  • Short-term live-cycle:
    • No content on file-system of local machine
    • No migration - just rebuild container
  • Should work "from scratch"
    • No manual installation steps
    • (Re-) build container and use Dokuwiki immediately

Building-blocks

  • Alpine-Linux
  • Nginx
  • PHP
  • Supervisor
  • Dokuwiki

Run container

#docker run -d --name dokuwiki -p <LOCAL_PORT>:80 -e SSH_KEY="$(cat <SSH_KEY>)" -e DOKUWIKI_USERDATA_REPOS=<GIT_REPOS> jarmini/docker-dokuwiki:latest
# e.g.
docker run -d --name dokuwiki -p 1113:80 --restart always -e SSH_KEY="$(cat ~/.ssh/id_rsa_dokuwiki)" -e DOKUWIKI_USERDATA_REPOS="git@bitbucket.org:johndoe/my_repos.git" jarmoni/docker-dokuwiki:latest

Links

These resources were very helpful when setting this up:

About

Dokuwiki Docker-image based on Alpine + Nginx


Languages

Language:Shell 100.0%