diff options
author | Lauri Ojansivu <x@xet7.org> | 2017-02-10 09:54:23 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2017-02-10 09:54:23 +0200 |
commit | 0065ca3ad6a3a627cde557b6c80f87c8c6267492 (patch) | |
tree | f832fde75ee9fba0310a51196c2e7ce90dedcfec /docker-compose.yml | |
parent | 89959753cd10321fc21cf290bdd06f26b19874b9 (diff) | |
parent | 1f7d1f023ff4a6ec2e8923e54fe26c68fa7d9380 (diff) | |
download | wekan-0065ca3ad6a3a627cde557b6c80f87c8c6267492.tar.gz wekan-0065ca3ad6a3a627cde557b6c80f87c8c6267492.tar.bz2 wekan-0065ca3ad6a3a627cde557b6c80f87c8c6267492.zip |
Merge branch 'devel' into greenkeeper-xss-0.3.3
Diffstat (limited to 'docker-compose.yml')
-rw-r--r-- | docker-compose.yml | 74 |
1 files changed, 46 insertions, 28 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index b9f02a48..35c5bfd1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,31 +1,49 @@ -# 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:3.2.11 + container_name: wekan-db + restart: always + command: mongod --smallfiles --oplogSize 128 + networks: + - wekan-tier + expose: + - 27017 + volumes: + - wekan-db:/data/db + - wekan-db-dump:/dump + wekan: + image: mquandalle/wekan:latest + container_name: wekan-app + restart: always + networks: + - wekan-tier + 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 + depends_on: + - wekandb + +volumes: + wekan-db: + driver: local + wekan-db-dump: + driver: local + +networks: + wekan-tier: + driver: bridge |