NodeJS based TiddlyWiki 5 Docker image.
Find a file
Chris B 1d356df701
Makes it possible to set empty password
Wraps user and password into double quotes to avoid variables with spaces to mess with the command line.
Also removes the colon from the password substitution to allow for empty passwords.
Only done for password, as empty user would possibly mess heavily with TiddlyWiki, as it uses the username to sign entries.
2019-08-11 16:02:46 +02:00
Dockerfile Enable serving the tiddlywiki at a non-root path 2018-11-17 21:55:46 +00:00
init-and-run-wiki Makes it possible to set empty password 2019-08-11 16:02:46 +02:00
README.md Added SERVE_URI docs 2018-11-17 22:04:33 +00:00
tiddlyweb_host Enable serving the tiddlywiki at a non-root path 2018-11-17 21:55:46 +00:00

Run TiddlyWiki 5 via docker.

Prerequisites

Install docker.

Quickstart

sudo docker run -d -p 8080:8080 mazzolino/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.

sudo docker run -d -p 8080:8080 -v $(pwd)/.tiddlywiki:/var/lib/tiddlywiki mazzolino/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:///${SERVE_URI} - the container initialization script takes care of setting the required host configuration tiddler.