From 5e7c6f97663b471b588255eb6f258edb488bf1aa Mon Sep 17 00:00:00 2001 From: gevin Date: Sun, 4 Sep 2016 21:15:43 +0800 Subject: [PATCH] version 2 --- docker-compose.yml | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 6f54922..49e322c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,20 +1,22 @@ -blog: - # restart: always - build: ./app - # image: gevin/octblog:0.2.4.2 - ports: - - "8000:8000" - links: - - mongo:mongo - # volumes: - # - /usr/src/app/static - env_file: .env +version: '2' +services: + blog: + # restart: always + # build: ./app + image: gevin/octblog:0.1 + ports: + - "8000:8000" + links: + - mongo:mongo + # volumes: + # - /usr/src/app/static + env_file: .env -mongo: - # restart: always - image: mongo:latest - env_file: .env + mongo: + # restart: always + image: mongo:latest + env_file: .env - volumes: - - /data/db + volumes: + - /data/db