summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2016-01-03 16:03:57 +0100
committerMaxime Quandalle <maxime@quandalle.com>2016-01-03 16:04:40 +0100
commit8c01d51577e3748d2c1b38b247d6c2cc4e7dbb08 (patch)
tree02fa9feb12229a00017a721f56cb143aaf9f017b
parent45c542cec38ad0133f2fa9aa36cf53634411f001 (diff)
downloadwekan-8c01d51577e3748d2c1b38b247d6c2cc4e7dbb08.tar.gz
wekan-8c01d51577e3748d2c1b38b247d6c2cc4e7dbb08.tar.bz2
wekan-8c01d51577e3748d2c1b38b247d6c2cc4e7dbb08.zip
Complete the Docker Compose manifest
-rw-r--r--docker-compose.yml26
1 files changed, 20 insertions, 6 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index d64946a2..649b82cb 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,5 +1,23 @@
-# Run with `docker-compose up -d`
-# XXX We should activate MongoDB oplog for better performance.
+# You can read the Docker Compose documentation at:
+#
+# https://docs.docker.com/compose/
+#
+# Run with file with `docker-compose up -d`.
+#
+# We use two separate Docker containers: one for the database and one for the
+# Wekan application. The Wekan container doensn’t contain any mutable state
+# (all the user data, even uploads, are saved in the database) so updating it
+# is as simple as stoping the old version and starting the new one. If you want
+# to update the database you need to uncomment the volume section below.
+
+wekandb:
+ image: mongo
+# volumes:
+# - ./data/runtime/db:/data/db
+# - ./data/dump:/dump
+ command: mongod --smallfiles --oplogSize 128
+ ports: 27017
+
wekan:
image: mquandalle/wekan
links:
@@ -10,7 +28,3 @@ wekan:
ports:
- 80:80
-wekandb:
- image: mongo
- ports:
- - 27017