Skip to content

Commit 73b9535

Browse files
committed
Specifying included docker-compose files in the .env is more flexible than hardcoding in the shell script.
1 parent 65a8bbc commit 73b9535

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

env-example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
COMPOSE_FILE=docker-compose.yml:docker-compose.dev.yml
99

10+
# Replace the above with the following line if you wish to use docker-sync.
11+
# COMPOSE_FILE=docker-compose.yml:docker-compose.dev.yml:docker-compose.sync.yml
12+
1013
### Application Path ###################################################################################################
1114
# Point to your code, will be available at `/var/www`.
1215

sync.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ if [ "$1" == "up" ] ; then
5959

6060
print_style "Initializing Docker Compose\n" "info"
6161
shift # removing first argument
62-
docker-compose -f docker-compose.yml -f docker-compose.sync.yml up -d ${@}
62+
docker-compose up -d ${@}
6363

6464
elif [ "$1" == "down" ]; then
6565
print_style "Stopping Docker Compose\n" "info"

0 commit comments

Comments
 (0)