From e43223846955ff0c2915ce45093f4676108aba2c Mon Sep 17 00:00:00 2001 From: Thomas Becker Date: Thu, 5 Jan 2017 08:26:43 +0100 Subject: [PATCH] Updated yaml file to version 2, see #752 --- Install-Wekan-Docker-for-testing.md | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/Install-Wekan-Docker-for-testing.md b/Install-Wekan-Docker-for-testing.md index 82294f1..f93892b 100644 --- a/Install-Wekan-Docker-for-testing.md +++ b/Install-Wekan-Docker-for-testing.md @@ -6,20 +6,22 @@ 1. In a given directory (say `/home/johndoe/wekan`), create a `docker-compose.yml` file with: ```yaml -wekan: - image: mquandalle/wekan - links: - - wekandb - environment: - - MONGO_URL=mongodb://wekandb/wekan - - ROOT_URL=http://localhost:80 - ports: - - 80:80 +version: '2' +services: + wekan: + image: mquandalle/wekan + links: + - wekandb + environment: + - MONGO_URL=mongodb://wekandb/wekan + - ROOT_URL=http://localhost:80 + ports: + - 80:80 -wekandb: - image: mongo - volumes: - - /home/johndoe/wekan/data:/data/db + wekandb: + image: mongo + volumes: + - /home/johndoe/wekan/data:/data/db ``` Then, from the directory containing the `docker-compose.yml` (i.e. `/home/johndoe/wekan`), simply run `docker-compose up`. If you want it to be deamonized, you could run `docker-compose up -d`.