Skip to content

Commit 29422f5

Browse files
author
DKravtsov
committed
Fixed docker-compose path mapping for the Docker Desktop, added README notes for MacOS users.
1 parent baa827d commit 29422f5

5 files changed

+8
-6
lines changed

Diff for: docker-compose-prod.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ services:
1515
- "${WEB_PORT_HTTP}:80"
1616
- "${WEB_PORT_SSL}:443"
1717
volumes:
18-
- .:/var/www/html:ro,cached
18+
- ./:/var/www/html:ro,cached
1919
depends_on:
2020
- laravel
2121
networks:

Diff for: docker-compose-staging.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ services:
1515
- "${WEB_PORT_HTTP}:80"
1616
- "${WEB_PORT_SSL}:443"
1717
volumes:
18-
- .:/var/www/html:ro,cached
18+
- ./:/var/www/html:ro,cached
1919
depends_on:
2020
- laravel
2121
networks:

Diff for: docker-compose-test-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ services:
1515
- "${WEB_PORT_HTTP}:80"
1616
- "${WEB_PORT_SSL}:443"
1717
volumes:
18-
- .:/var/www/html:ro,cached
18+
- ./:/var/www/html:ro,cached
1919
depends_on:
2020
- laravel
2121
networks:

Diff for: docker-compose.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ services:
1515
- "${WEB_PORT_HTTP}:80"
1616
- "${WEB_PORT_SSL}:443"
1717
volumes:
18-
- .:/var/www/html:ro,cached
18+
- ./:/var/www/html:ro,cached
1919
depends_on:
2020
- laravel
2121
networks:
@@ -33,7 +33,7 @@ services:
3333
dockerfile: ./Dockerfile
3434
container_name: ${COMPOSE_PROJECT_NAME}-laravel
3535
volumes:
36-
- .:/var/www/html:cached
36+
- ./:/var/www/html:cached
3737
depends_on:
3838
- mysql
3939
networks:

Diff for: readme.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ Note: OS recommendation - Linux Ubuntu based.
2929

3030
2.For installing docker-compose as `Linux Standalone binary` please follow steps on the page [install compose](https://docs.docker.com/compose/install/other/#install-compose-standalone) if you are using Linux OS.
3131

32-
Note: Please run next cmd after above step 2 if you are using Linux OS: `sudo usermod -aG docker $USER`
32+
Note 1: Please run next cmd after above step 2 if you are using Linux OS: `sudo usermod -aG docker $USER`
33+
34+
Note 2: If you are using docker desktop for MacOS 12.2 or later - please enable [virtiofs](https://www.docker.com/blog/speed-boost-achievement-unlocked-on-docker-desktop-4-6-for-mac/) for the performance.
3335

3436
## Setting up DEV environment
3537
1.You can clone this repository from GitHub or install via composer.

0 commit comments

Comments
 (0)