-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
135 lines (124 loc) · 2.71 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
version: '3'
services:
cron:
image: fballiano/magento2-cron
depends_on:
- apache
- varnish
links:
- db
- redis
- redis-session
- apache
- varnish
volumes:
- ./src:/var/www/html
- ./.docker/varnish/varnish.secret:/varnish.secret
# Enable the next line if you want to add a custom php.ini
- ./.docker/cron/php.ini:/usr/local/etc/php/conf.d/999-customphp.ini
networks:
- magento2-network
ssl:
image: fballiano/nginx-ssl-for-magento2
depends_on:
- varnish
links:
- varnish
ports:
- "443:443"
networks:
- magento2-network
varnish:
image: fballiano/varnish
ports:
- "80:80"
- "6082:6082"
depends_on:
- apache
links:
- apache
volumes:
- ./.docker/varnish/varnish.vcl:/etc/varnish/default.vcl
- ./.docker/varnish/varnish.secret:/etc/varnish/secret
environment:
- CACHE_SIZE=2G
networks:
- magento2-network
apache:
image: rflo/magento2.3_php7.2_varnish
#build: .
ports:
- "66:80"
- "9001:9000" # xdebug
# - "35729:35729" # live reload
depends_on:
- db
- redis
- redis-session
links:
- db
- redis
- redis-session
volumes:
- ./src:/var/www/html
- ~/.composer/auth.json:/root/.composer/auth.json
- ~/.composer:/var/www/.composer
- ~/.npm:/var/www/.npm
- ./.docker/magento/env.php:/var/www/env.sample.php
# Enable the next line if you want to add a custom php.ini
- ./.docker/config/php.ini:/usr/local/etc/php/conf.d/999-customphp.ini
environment:
XDEBUG_CONFIG: "remote_host=localhost"
PHP_IDE_CONFIG: "serverName=Docker"
networks:
- magento2-network
db:
image: mariadb
ports:
- "3306:3306"
volumes:
- ./.docker/db/dbdata:/var/lib/mysql
- ./.docker/db/home:/home
environment:
- MYSQL_ROOT_PASSWORD=magento2
- MYSQL_DATABASE=magento2
- MYSQL_USER=magento2
- MYSQL_PASSWORD=magento2
networks:
- magento2-network
redis:
image: redis
ports:
- 6379
networks:
- magento2-network
redis-session:
image: redis
ports:
- 6379
networks:
- magento2-network
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
- PMA_HOST=db
- PMA_USER=root
- PMA_PASSWORD=magento2
- MYSQL_ROOT_PASSWORD=magento2
ports:
- 8888:80
networks:
- magento2-network
mailhog:
image: mailhog/mailhog
ports:
- 1025:1025
- 8025:8025
networks:
- magento2-network
networks:
magento2-network:
driver: bridge
volumes:
dbdata:
driver: local