summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTill Höppner2017-10-01 22:37:10 +0200
committerTill Höppner2017-10-01 22:37:10 +0200
commitd14c15c595e9025637fdad360ca2c969c47b4258 (patch)
tree7a52bb4b55abaf955d2a29ecb75f0a23a41b8e7d
parenta940236215b234a2aa37e26ecf5a14acd2e7f539 (diff)
downloadserver-d14c15c595e9025637fdad360ca2c969c47b4258.tar.gz
server-d14c15c595e9025637fdad360ca2c969c47b4258.tar.xz
server-d14c15c595e9025637fdad360ca2c969c47b4258.zip
Add wiki service
-rw-r--r--images/wiki/Dockerfile6
-rw-r--r--services/wiki.yml20
2 files changed, 26 insertions, 0 deletions
diff --git a/images/wiki/Dockerfile b/images/wiki/Dockerfile
new file mode 100644
index 0000000..fce11bc
--- /dev/null
+++ b/images/wiki/Dockerfile
@@ -0,0 +1,6 @@
+FROM requarks/wiki:latest
+
+WORKDIR /var/wiki
+ADD ssh /app/ssh
+ADD config.yml config.yml
+ENTRYPOINT ["node", "server"]
diff --git a/services/wiki.yml b/services/wiki.yml
new file mode 100644
index 0000000..f20f548
--- /dev/null
+++ b/services/wiki.yml
@@ -0,0 +1,20 @@
+version: '3'
+
+volumes:
+ wiki_db:
+
+services:
+ wiki_mongo:
+ image: mongo
+ command: '--smallfiles --logpath=/dev/null'
+ volumes:
+ - wiki_db:/data/db
+
+ wiki:
+ build: $IMAGES/wiki
+ ports:
+ - "8080:80"
+ depends_on:
+ - wiki_mongo
+ environment:
+ WIKI_ADMIN_EMAIL: "till@hoeppner.ws"