diff --git a/tiddlywiki/Dockerfile b/tiddlywiki/Dockerfile new file mode 100644 index 0000000..2defe5f --- /dev/null +++ b/tiddlywiki/Dockerfile @@ -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"] diff --git a/tiddlywiki/README.md b/tiddlywiki/README.md new file mode 100644 index 0000000..772b511 --- /dev/null +++ b/tiddlywiki/README.md @@ -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 +``` diff --git a/tiddlywiki/docker-compose.yml b/tiddlywiki/docker-compose.yml new file mode 100644 index 0000000..518a512 --- /dev/null +++ b/tiddlywiki/docker-compose.yml @@ -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