-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathdocker-compose.yml
127 lines (114 loc) · 3.39 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
version: '5'
services:
php:
container_name: php
build:
context: ./docker/php
ports:
- 9000:9000
volumes:
- appdata:/var/www
- ./magento247:/var/www/magento247:cached
- ./docker/php/www.conf:/usr/local/etc/php-fpm.d/www.conf
environment:
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
PHP_XDEBUG_ENABLED: 1
XDEBUG_CONFIG: remote_host=host.docker.internal
PHP_IDE_CONFIG: "serverName=magento247"
networks:
- magento_network
nginx:
container_name: nginx
image: nginx:1.24
ports:
- 80:80
volumes:
- ./magento247:/var/www/magento247:cached
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./docker/nginx/m2-config/nginx.conf:/var/www/nginx.conf
depends_on:
- php
networks:
- magento_network
db:
container_name: mariadb
image: mariadb:10.6
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
networks:
- magento_network
mailhog:
container_name: mail
image: mailhog/mailhog:latest
links:
- php
ports:
- "1025:1025"
- "8025:8025"
networks:
- magento_network
redis:
container_name: redis
image: redis:latest
networks:
- magento_network
redisinsight:
container_name: redisinsight
image: redislabs/redisinsight:latest
ports:
- 8001:8001
networks:
- magento_network
rabbitmq:
container_name: rabbitmq
image: rabbitmq:3-management
ports:
- "15672:15672"
- "5672:5672"
networks:
- magento_network
opensearch:
image: opensearchproject/opensearch:2.12.0
container_name: opensearch
ports:
- "9200:9200"
- "9300:9300"
environment:
"discovery.type": "single-node"
OPENSEARCH_INITIAL_ADMIN_PASSWORD: ${OPENSEARCH_INITIAL_ADMIN_PASSWORD}
DISABLE_SECURITY_PLUGIN: true
networks:
- magento_network
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:2.12.0
container_name: opensearch-dashboards
ports:
- 5601:5601
expose:
- '5601'
environment:
OPENSEARCH_HOSTS: '["http://opensearch:9200"]'
DISABLE_SECURITY_DASHBOARDS_PLUGIN: true
networks:
- magento_network
#blackfire:
# container_name: blackfire
# image: blackfire/blackfire
# ports: ["8707"]
# environment:
# # Exposes BLACKFIRE_* environment variables from the host
# BLACKFIRE_SERVER_ID: ### Add server id ####
# BLACKFIRE_SERVER_TOKEN: ### Add server token ###
# BLACKFIRE_CLIENT_ID: ### Add client id ###
# BLACKFIRE_CLIENT_TOKEN: ### Add client Token ###
volumes:
appdata:
networks:
magento_network:
driver: bridge