2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2026-01-04 12:05:02 +01:00

add tiddlywiki

This commit is contained in:
kev
2019-12-27 12:16:52 +08:00
parent 3e6792d84d
commit 91e862cfb8
3 changed files with 62 additions and 0 deletions

35
tiddlywiki/README.md Normal file
View File

@@ -0,0 +1,35 @@
tiddlywiki
==========
## docker-compose.yml
```yaml
tiddlywiki:
image: vimagick/tiddlywiki
command: >
username=admin
password=admin
writers=(authenticated)
readers=(anon)
ports:
- "8080:8080"
volumes:
- ./data:/data
restart: unless-stopped
```
## up and running
```bash
# initialize wiki
$ docker-compose run --rm tiddlywiki . --init server
# serves wiki over http
$ docker-compose up -d
# open wiki in browser
$ curl http://127.0.0.1:8080/login-basic
# authorized access
$ curl -u admin:admin http://127.0.0.1:8080/status
```