-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
73 lines (68 loc) · 1.85 KB
/
compose.yaml
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
version: '3'
services:
php:
build: ./php
container_name: magento237_php
working_dir: /var/www/html
restart: always
env_file:
- .env
volumes:
- ${MAGENTO_ROOT}:/var/www/html
- ./php/php.ini:/usr/local/etc/php/conf.d/docker-php-custom.ini
- ./php/install-magento.sh:/usr/local/bin/install-magento
- ./php/auth.json:/root/.composer/auth.json
networks:
- magento237-network
nginx:
image: nginx:1.24
container_name: magento237_nginx
restart: always
volumes:
- ${MAGENTO_ROOT}:/var/www/html
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./nginx/settings.conf:/etc/nginx/settings.conf
- ./nginx/magento.conf:/etc/nginx/magento.conf
ports:
- "80:80"
networks:
- magento237-network
mysql:
image: mysql:5.7
container_name: magento237_mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
# ports:
# - "3306:3306"
volumes:
- ${DATA_DIR}/mysql:/var/lib/mysql
networks:
- magento237-network
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.2
container_name: magento237_elasticsearch
restart: always
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx2g" # Set min and max JVM heap sizes to at least 50% of system RAM
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- ${DATA_DIR}/elasticsearch:/usr/share/elasticsearch/data
# ports:
# - 9200:9200 # REST API
# - 9600:9600 # Performance Analyzer
networks:
- magento237-network
networks:
magento237-network: