This repository was archived by the owner on Jun 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
94 lines (85 loc) · 1.82 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
# MagedIn - Magento DockerLab
# (https://github.com/magedin/magento-dockerlab)
version: "3.5"
services:
nginx:
image: magedin/nginx:1.21.0
user: www
ports:
- "80:8080"
- "443:8443"
links:
- db
- php
environment:
SSL_CA_DIR: /var/www/ssl/ca
SSL_CERT_DIR: /var/www/ssl/certificates
networks:
- magedin
volumes: &appvolumes
- ~/.composer:/var/www/.composer:cached
- dockerlab_appdata:/var/www/html
- ./var/ssl:/var/www/ssl:cached
php: &php
image: magedin/magento2-php:7.4
user: www
links:
- db
depends_on:
- db
- redis
- elasticsearch
env_file: ./.env
networks:
- magedin
volumes: *appvolumes
php-debug:
image: magedin/magento2-php-debug:7.4
<<: *php
db:
image: mariadb:10.4
command: --max_allowed_packet=64M
ports:
- "3306:3306"
env_file: ./.env
networks:
- magedin
volumes:
- dockerlab_dbdata:/var/lib/mysql
- ./var/dumps:/var/dumps
redis:
image: redis:6.2
networks:
- magedin
elasticsearch:
image: elasticsearch:7.17.6
ports:
- "9200:9200"
- "9300:9300"
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms750m -Xmx750m"
- xpack.security.enabled=false
mem_limit: 4g
networks:
- magedin
volumes:
- dockerlab_esdata:/usr/share/elasticsearch/data
# Disabling cron by default as it uses higher CPU, enable if needed
#cron:
# image: magedin/magento2-php:7.4
# user: root
# command: /usr/local/bin/cronstart
# tty: true
# links:
# - db
# volumes: *appvolumes
networks:
magedin:
name: magento_dockerlab
volumes:
dockerlab_appdata:
dockerlab_dbdata:
dockerlab_ssldata:
dockerlab_esdata: