File tree Expand file tree Collapse file tree 2 files changed +28
-4
lines changed
Expand file tree Collapse file tree 2 files changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,22 @@ before_install:
1313 # update packages
1414 - sudo apt-get update
1515
16- # emit docker version
16+ # allow write access to /usr/local/bin
17+ - sudo chown -R $(whoami) /usr/local/bin
18+
19+ # emit current docker-compose version
1720 - docker-compose --version
1821
19- # emit config
22+ # emit current docker-compose config
2023 - docker-compose config
2124
25+ # use specific docker-compose version
26+ - curl -L https://github.com/docker/compose/releases/download/1.12.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
27+ - chmod +x /usr/local/bin/docker-compose
28+
29+ # emit new docker-compose version
30+ - docker-compose --version
31+
2232 # build and start services
2333 - docker-compose build --force-rm --no-cache
2434
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ A `docker-compose`-powered stack to get your PHP project running in no time.
2020# Requirements
2121
2222- ` Docker ` v17.03.1-ce or higher
23- - ` docker-compose ` v1.11.2 or higher
23+ - ` docker-compose ` v1.12 or higher
2424
2525
2626# How-to (simple)
@@ -92,7 +92,21 @@ and start the stack again.
9292
9393## Gotchas
9494
95- - Ensure that the host machine ports ` 8080 ` (web server) and ` 3306 ` (database) are open on your host machine.
95+ Ensure that the host machine ports ` 8080 ` (web server) and ` 3306 ` (database) are open on your host machine.
96+
97+ ---
98+
99+ Your version of Docker for Mac might ship with v1.11 (an older release) of Docker Compose. You need to upgrade
100+ to at least v1.12 in order to make this stack work.
101+
102+ For Linux/macOS users, you can run:
103+
104+ curl -L https://github.com/docker/compose/releases/download/1.12.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
105+ chmod +x /usr/local/bin/docker-compose
106+
107+ To check that you are using v1.12 or higher, run:
108+
109+ docker-compose --version
96110
97111
98112# Warranties
You can’t perform that action at this time.
0 commit comments