1.5 KiB
TiddliWiki 5 Docker image
Run TiddlyWiki 5 via Docker.
Forked from djmaze/tiddlywiki-docker.
The Docker image is available at m0wer/tiddlywiki - Docker Hub.
Prerequisites
- Docker.
Quickstart
docker run -d -p 8080:8080 m0wer/tiddlywiki
Now TiddlyWiki should be running on http://localhost:8080.
Keeping the data
The container uses a Docker volume to save the wiki data. In order not to lose sight of that, I recommend using a local folder for the volume.
docker run -d -p 8080:8080 -v $(pwd)/.tiddlywiki:/var/lib/tiddlywiki m0wer/tiddlywiki
In this example, the folder $(pwd)/.tiddlywiki is used for the data.
Auth
Default auth is user:wiki.
Simply provide the USERNAME and PASSWORD env variables to customise.
Other settings
If you are in a memory-constrained environment, you can provide the
NODE_MEM environment variable to specify the memory ceiling (in MB)
To serve the tiddlywiki at a
non-root prefix path
set the SERVE_URI environment variable: this variable ''must'' start with a
forward slash character. The tiddlywiki will be served by the container at
http://<IP>/${SERVE_URI} - the container initialization script takes care of
setting the required host configuration tiddler.