Skip to content

Commit 1ecc388

Browse files
committed
preliminary support for balancing
1 parent 91288fd commit 1ecc388

File tree

3 files changed

+20
-11
lines changed

3 files changed

+20
-11
lines changed

docker-compose.yml

+15-10
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,38 @@
1+
cron:
2+
image: fballiano/magento2-cron
3+
links:
4+
- db
5+
- redis
6+
- apache
7+
- varnish
8+
volumes:
9+
- ./magento2:/var/www/html
10+
- ./varnish.secret:/varnish.secret
11+
112
varnish:
213
image: fballiano/varnish
314
ports:
415
- "80:80"
16+
- "6082:6082"
517
links:
618
- apache
719
volumes:
820
- ./varnish.vcl:/etc/varnish/default.vcl
21+
- ./varnish.secret:/etc/varnish/secret
922
environment:
1023
- CACHE_SIZE=256M
1124

1225
apache:
1326
image: fballiano/magento2-apache-php
14-
ports:
15-
- "8080:80"
27+
# ports:
28+
# - "8080:80"
1629
links:
1730
- db
1831
- redis
1932
volumes:
2033
- ./magento2:/var/www/html
2134
- ~/.composer/auth.json:/root/.composer/auth.json
2235

23-
cron:
24-
image: fballiano/magento2-cron
25-
links:
26-
- db
27-
- redis
28-
volumes:
29-
- ./magento2:/var/www/html
30-
3136
db:
3237
image: mariadb:10.0
3338
ports:

varnish.secret

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cc4d5b50-5f31-4c83-8d3b-bc1fac32a72w
2+

varnish.vcl

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
vcl 4.0;
22

33
import std;
4-
# The minimal Varnish version is 4.0
4+
import directors;
55

6+
#AUTOGENERATED_START
67
backend default {
78
.host = "apache";
89
.port = "80";
910
}
11+
#AUTOGENERATED_END
1012

1113
acl purge {
1214
"apache";

0 commit comments

Comments
 (0)