-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose-dev.yml
96 lines (91 loc) · 2.24 KB
/
docker-compose-dev.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
version: '3'
services:
mysql :
image: mysql:5.7
command: --max_allowed_packet=32505856
ports:
- 3306:3306
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_DATABASE=magento
- MYSQL_USER=magento
- MYSQL_PASSWORD=magento
volumes:
- mysql:/var/lib/mysql
- ./data/dev/db:/docker-entrypoint-initdb.d
elasticsearch:
image: magento-elasticsearch
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ports:
- 9200:9200
healthcheck:
test: ["CMD", "curl", "-fsSL", "-u", "elastic:changeme", "http://localhost:9200/_cat/health?h=status"]
interval: 1s
timeout: 3s
retries: 60
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es:/usr/share/elasticsearch/data
redis:
image: redis:3
ports:
- 6379:6379
volumes:
- redis:/data:delegated
magento:
image: magento-node
user: ${CURRENT_UID}
ports:
- 80:8080
depends_on:
- mysql
- elasticsearch
- redis
environment:
- FQDN=localhost
- USE_SSL=false
- UNATTENDED=true
- DEBUG=false
- PHP_MEMORY_LIMIT=4G
- PHP_ENABLE_XDEBUG=false
- MAGENTO_ROOT=/var/www/magento
- MAGENTO_RUN_MODE=developer
- UPLOAD_MAX_FILESIZE=64M
- MYSQL_HOSTNAME=mysql
- MYSQL_USERNAME=magento
- MYSQL_PASSWORD=magento
- MYSQL_DATABASE=magento
- ES_HOST=elasticsearch:9200
- ES_USER=elastic
- ES_PASSWORD=changeme
- ES_ENABLE_SSL=false
- CRYPT_KEY=""
- USE_REDIS=false
- REDIS_SERVER=redis
- REDIS_PORT=6379
- REDIS_SESSION_DB=0
- REDIS_CACHE_BACKEND_DB=1
- REDIS_PAGE_CACHE_DB=2
- ADMIN_USERNAME=admin
- ADMIN_PASSWORD=adm1nistrator
- ADMIN_FIRSTNAME=admin
- ADMIN_LASTNAME=admin
- CURRENCY=EUR
- LANGUAGE=fr_FR
- TIMEZONE=Europe/Paris
- BACKEND_FRONTNAME=admin
- CONTENT_LANGUAGES=fr_FR
volumes:
- ./data/dev/magento22-paas:/var/www/magento
- ./data/dev/media/catalog:/var/www/magento/pub/media/catalog
volumes:
es:
mysql:
redis: