mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:15 +02:00
add tiddlywiki
This commit is contained in:
parent
3e6792d84d
commit
91e862cfb8
15
tiddlywiki/Dockerfile
Normal file
15
tiddlywiki/Dockerfile
Normal 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
35
tiddlywiki/README.md
Normal 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
|
||||
```
|
12
tiddlywiki/docker-compose.yml
Normal file
12
tiddlywiki/docker-compose.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user