Skip to content

Commit e730946

Browse files
committed
Using delegated consistency for better performance
1 parent 72d3185 commit e730946

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

docker-compose.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '3'
1+
version: '3.7'
22
services:
33
cron:
44
image: fballiano/magento2-cron
@@ -12,8 +12,14 @@ services:
1212
- apache
1313
- varnish
1414
volumes:
15-
- ./magento2:/var/www/html
16-
- ./varnish.secret:/varnish.secret
15+
- type: bind
16+
source: ./magento2
17+
target: /var/www/html
18+
consistency: delegated
19+
- type: bind
20+
source: ./varnish.secret
21+
target: /varnish.secret
22+
consistency: consistent
1723
# Enable the next line if you want to add a custom php.ini
1824
#- ./php.ini:/usr/local/etc/php/conf.d/999-customphp.ini
1925

@@ -52,7 +58,10 @@ services:
5258
- cache
5359
- clusterdata
5460
volumes:
55-
- ./magento2:/var/www/html
61+
- type: bind
62+
source: ./magento2
63+
target: /var/www/html
64+
consistency: delegated
5665
- ~/.composer/auth.json:/root/.composer/auth.json
5766
# Enable the next line if you want to add a custom php.ini
5867
#- ./php.ini:/usr/local/etc/php/conf.d/999-customphp.ini
@@ -62,7 +71,10 @@ services:
6271
ports:
6372
- "3306:3306"
6473
volumes:
65-
- dbdata:/var/lib/mysql
74+
- type: volume
75+
source: dbdata
76+
target: /var/lib/mysql
77+
consistency: delegated
6678
environment:
6779
- MYSQL_ROOT_PASSWORD=magento2
6880
- MYSQL_DATABASE=magento2

0 commit comments

Comments
 (0)