1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:15 +02: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

15
tiddlywiki/Dockerfile Normal file
View File

@ -0,0 +1,15 @@
#
# Dockerfile for tiddlywiki
#
FROM node:alpine
MAINTAINER EasyPi Software Foundation
RUN npm install -g tiddlywiki
VOLUME /data
WORKDIR /data
EXPOSE 8080
ENTRYPOINT ["tiddlywiki", ".", "--listen", "host=0.0.0.0", "port=8080"]

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
```

View File

@ -0,0 +1,12 @@
tiddlywiki:
image: vimagick/tiddlywiki
command: >
username=admin
password=admin
writers=(authenticated)
readers=(anon)
ports:
- "8080:8080"
volumes:
- ./data:/data
restart: unless-stopped