-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
118 lines (109 loc) · 2.76 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
# development environment
version: '2'
services:
nginx:
depends_on:
- php-fpm
image: nginx:latest
container_name: ${PROJECT_NAME}-dev-nginx
networks:
- magento_development
volumes:
- ./magento2:/home/magento:cached
- ./docker/development/conf.d:/etc/nginx/conf.d
- ./data/development/log/nginx:/var/log/nginx
ports:
- "80:80"
php-fpm:
platform: linux/x86_64
build: ./docker/php-fpm
container_name: ${PROJECT_NAME}-dev-php-fpm
volumes:
- ./magento2:/home/magento:cached
- ./docker/development/php-fpm/php.ini:/etc/php.ini
- ./docker/development/auth.json:/root/.composer/auth.json
depends_on:
- mysql
- redis
- rabbitmq
- elasticsearch
networks:
- magento_development
environment:
PHP_IDE_CONFIG: "serverName=Docker"
redis:
image: redis:6.2
container_name: ${PROJECT_NAME}-dev-redis
ports:
- "6379:6379"
networks:
- magento_development
mysql:
platform: linux/x86_64
image: mysql:8.0.27
container_name: ${PROJECT_NAME}-dev-mysql
volumes:
- ./docker/development/config/mysqld.cnf:/etc/mysql/mysql.conf.d/mysqld.cnf
- ./data/development/db/mysql:/var/lib/mysql
env_file: ./docker/development/envs/db.env
ports:
- "3308:3306"
networks:
- magento_development
mailhog:
platform: linux/x86_64
image: mailhog/mailhog
container_name: ${PROJECT_NAME}-dev-mailhog
environment:
- VIRTUAL_HOST=mail.${PROJECT_VIRTUAL_HOST}
- VIRTUAL_PORT=8025
ports:
- "1025:1025"
- "8025:8025"
networks:
- magento_development
expose:
- 8025
rabbitmq:
image: rabbitmq:3.9-management
container_name: ${PROJECT_NAME}-dev-rabbitmq
environment:
- VIRTUAL_HOST=rabbit.${PROJECT_VIRTUAL_HOST}
- VIRTUAL_PORT=15672
ports:
- "15672:15672"
- "5672:5672"
restart: always
networks:
- magento_development
expose:
- 15672
elasticsearch:
image: elasticsearch:7.16.3
container_name: ${PROJECT_NAME}-dev-elasticsearch
ports:
- "9200:9200"
- "9300:9300"
restart: always
networks:
- magento_development
environment:
- "discovery.type=single-node"
## Set custom heap size to avoid memory errors
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- VIRTUAL_HOST=elastic.${PROJECT_VIRTUAL_HOST}
- VIRTUAL_PORT=9200
expose:
- 9200
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: ${PROJECT_NAME}-dev-phpmyadmin
networks:
- magento_development
restart: unless-stopped
env_file: ./docker/development/envs/phpmyadmin.env
ports:
- "8080:80"
networks:
magento_development:
driver: bridge