From 8133db24b0226e72e2de00bacc6cd24d4e52a46a Mon Sep 17 00:00:00 2001 From: Thomas Decaux Date: Mon, 24 Oct 2016 16:03:03 +0200 Subject: [PATCH] Update docker-compose file to version 2 And snappass container will be built from Dockerfile since there is no official image (yet..) --- docker-compose.yml | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 3007635..b0d1a41 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,13 +1,17 @@ ---- -snappass: - image: snappass - ports: - - "5000:5000" - links: - - "redis:redis" - environment: - - REDIS_HOST=redis - - NO_SSL=True +version: '2' -redis: - image: "redis:latest" +services: + + snappass: + build: . + image: pinterest/snappass + ports: + - "5000:5000" + environment: + - REDIS_HOST=redis + - NO_SSL=True + depends_on: + - redis + + redis: + image: "redis:latest"