From 73b95357ac661a718ade6a9e0b963c2472c4138b Mon Sep 17 00:00:00 2001 From: Jeff Date: Wed, 22 Nov 2017 10:48:22 +1300 Subject: [PATCH] Specifying included docker-compose files in the .env is more flexible than hardcoding in the shell script. --- env-example | 3 +++ sync.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/env-example b/env-example index 05e1e64..64936c7 100644 --- a/env-example +++ b/env-example @@ -7,6 +7,9 @@ COMPOSE_FILE=docker-compose.yml:docker-compose.dev.yml +# Replace the above with the following line if you wish to use docker-sync. +# COMPOSE_FILE=docker-compose.yml:docker-compose.dev.yml:docker-compose.sync.yml + ### Application Path ################################################################################################### # Point to your code, will be available at `/var/www`. diff --git a/sync.sh b/sync.sh index 6955358..0f835b3 100755 --- a/sync.sh +++ b/sync.sh @@ -59,7 +59,7 @@ if [ "$1" == "up" ] ; then print_style "Initializing Docker Compose\n" "info" shift # removing first argument - docker-compose -f docker-compose.yml -f docker-compose.sync.yml up -d ${@} + docker-compose up -d ${@} elif [ "$1" == "down" ]; then print_style "Stopping Docker Compose\n" "info"