-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
74 lines (69 loc) · 1.9 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
74
version: '3'
services:
php:
build: ./php
container_name: magento246_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:
- magento246-network
nginx:
image: nginx:1.24
container_name: magento246_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:
- magento246-network
mysql:
image: mysql:8.0
container_name: magento246_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:
- magento246-network
opensearch:
image: opensearchproject/opensearch:2.5.0
container_name: magento246_opensearch
restart: always
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true
- plugins.security.disabled=true # Removes SSL requirement
- "OPENSEARCH_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}/opensearch:/usr/share/opensearch/data
# ports:
# - 9200:9200 # REST API
# - 9600:9600 # Performance Analyzer
networks:
- magento246-network
networks:
magento246-network: