mirror of
https://github.com/m0wer/tiddlywiki-docker.git
synced 2026-01-23 02:24:25 +00:00
commit
b3efdcddc7
2 changed files with 8 additions and 1 deletions
|
|
@ -18,3 +18,9 @@ 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.
|
||||
|
|
|
|||
|
|
@ -5,4 +5,5 @@ if [ ! -d /var/lib/tiddlywiki/mywiki ]; then
|
|||
tiddlywiki mywiki --init server
|
||||
fi
|
||||
|
||||
exec tiddlywiki mywiki --server 8080 $:/core/save/all text/plain text/html user "" 0.0.0.0
|
||||
exec tiddlywiki mywiki --server 8080 $:/core/save/all text/plain text/html ${USERNAME:-user} ${PASSWORD:-'wiki'} 0.0.0.0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue