forked from fballiano/docker-magento2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (72 loc) · 1.57 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3'
services:
cron:
image: fballiano/magento2-cron
depends_on:
- apache
- varnish
links:
- db
- cache
- clusterdata
- apache
- varnish
volumes:
- ./magento2:/var/www/html
- ./varnish.secret:/varnish.secret
# Enable the next line if you want to add a custom php.ini
#- ./php.ini:/usr/local/etc/php/conf.d/999-customphp.ini
ssl:
image: fballiano/nginx-ssl-for-magento2
depends_on:
- varnish
links:
- varnish
ports:
- "443:443"
varnish:
image: fballiano/varnish
ports:
- "80:80"
- "6082:6082"
depends_on:
- apache
links:
- apache
volumes:
- ./varnish.vcl:/etc/varnish/default.vcl
- ./varnish.secret:/etc/varnish/secret
environment:
- CACHE_SIZE=256M
apache:
image: fballiano/magento2-apache-php
depends_on:
- db
- cache
- clusterdata
links:
- db
- cache
- clusterdata
volumes:
- ./magento2:/var/www/html
- ~/.composer/auth.json:/root/.composer/auth.json
# Enable the next line if you want to add a custom php.ini
#- ./php.ini:/usr/local/etc/php/conf.d/999-customphp.ini
db:
image: mariadb
ports:
- "3306:3306"
volumes:
- dbdata:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=magento2
- MYSQL_DATABASE=magento2
- MYSQL_USER=magento2
- MYSQL_PASSWORD=magento2
cache:
image: fballiano/redis-volatile
clusterdata:
image: fballiano/redis-volatile
volumes:
dbdata: