summaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorStephen Moloney <stephenmoloney@live.com>2017-01-17 08:49:42 +0000
committerStephen Moloney <stephenmoloney@live.com>2017-01-17 08:49:42 +0000
commit692f5fb10c60f8b933c3fbcfd549c5db2f9b7058 (patch)
tree98d95a0484620e859602e3478eccc53fbf1ff277 /docker-compose.yml
parentd619921d9c85f7cb30e9022c94b170bc1e571b47 (diff)
downloadwekan-692f5fb10c60f8b933c3fbcfd549c5db2f9b7058.tar.gz
wekan-692f5fb10c60f8b933c3fbcfd549c5db2f9b7058.tar.bz2
wekan-692f5fb10c60f8b933c3fbcfd549c5db2f9b7058.zip
locally build docker image
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml66
1 files changed, 38 insertions, 28 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index b9f02a48..029106e6 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,31 +1,41 @@
-# 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.
+version: '2'
-wekandb:
- image: mongo
-# volumes:
-# - ./data/runtime/db:/data/db
-# - ./data/dump:/dump
- command: mongod --smallfiles --oplogSize 128
- ports:
- - 27017
+services:
-wekan:
- image: mquandalle/wekan
- links:
- - wekandb
- environment:
- - MONGO_URL=mongodb://wekandb/wekan
- - ROOT_URL=http://localhost:80
- ports:
- - 80:80
+ wekandb:
+ image: mongo:latest
+ container_name: wekan-db
+ restart: always
+ command: mongod --smallfiles --oplogSize 128
+ expose:
+ - 27017
+ volumes:
+ - wekan-db:/data/db
+ - wekan-db-dump:/dump
+ wekan:
+ image: wefork/wekan
+ container_name: wekan-app
+ restart: always
+ build:
+ context: .
+ dockerfile: Dockerfile
+ args:
+ - node_version=${NODE_VERSION}
+ - meteor_release=${METEOR_RELEASE}
+ - npm_version=${NPM_VERSION}
+ - architecture=${ARCHITECTURE}
+ - src_path=${SRC_PATH}
+ ports:
+ - 80:80
+ environment:
+ - MONGO_URL=mongodb://wekandb:27017/wekan
+ - ROOT_URL=http://localhost
+ links:
+ - wekandb
+ depends_on:
+ - wekandb
+
+volumes:
+ wekan-db:
+ driver: local