TiddlyWikiDocker

nicolaw 24th March 2018 at 5:01pm
Docker TechnicalNotes TiddlyWiki TW5

Manual Execution

$ docker run -p 8080:8080 --name mywiki nicolaw/tiddlywiki

Custom Username

$ docker run -p 8080:8080 \
    -e "TW_USERNAME=$USER" \
    -e "TW_PASSWORD=hunter2" \
    --name mywiki nicolaw/tiddlywiki

SystemD Service

$ sudo mkdir /etc/tiddlywiki/
$ sudo cp tiddlywiki.service /etc/systemd/system/
$ sudo cp tiddlywiki.service.conf /etc/tiddlywiki/
$ sudo systemctl daemon-reload
$ sudo systemctl start tiddlywiki.service
$ sudo systemctl status tiddlywiki.service
$ sudo journalctl -u tiddlywiki.service

SystemD with Custom Username

Uncomment the TW_USERNAME and/or TW_PASSWORD lines from the /etc/tiddlywiki/tiddlywiki.service.conf file, and change as necessary.

$ sudo vi /etc/tiddlywiki/tiddlywiki.service.conf
$ sudo systemctl daemon-reload
$ sudo systemctl restart tiddlywiki.service

Configurable Variables

Refer to the canonical online documentation for help for additional help.

TW_DOCKERVOLUME=/home/janedoe/tiddlywiki
TW_DOCKERUID=0
TW_DOCKERGID=0
TW_USERNAME=janedoe
TW_PASSWORD=
TW_PORT=8080
TW_WIKINAME=mywiki
TW_ROOTTIDDLER=$:/core/save/all
TW_RENDERTYPE=text/plain
TW_SERVETYPE=text/html
TW_HOST=0.0.0.0
TW_PATHPREFIX=