-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (55 loc) · 1.14 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
version: "3.3"
services:
redis:
image: "redis:6.2-alpine"
restart: on-failure
volumes:
- redis_volume:/data
web:
image: magento2_web
restart: on-failure
ports:
- "80:80"
links:
- db
- opensearch
- redis
depends_on:
- db
- opensearch
- redis
volumes:
- /path/to/magento:/var/www/html
db:
image: mariadb:10.4
restart: on-failure
environment:
MARIADB_ROOT_PASSWORD: example
volumes:
- db_volume:/var/lib/mysql
opensearch:
image: opensearchproject/opensearch:1.2.4
container_name: opensearch
restart: on-failure
environment:
- cluster.name=opensearch-cluster
- node.name=opensearch
- discovery.type=single-node
- bootstrap.memory_lock=true
- plugins.security.disabled=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
ports:
- 9200:9200
volumes:
- opensearch_volume:/usr/share/opensearch/data
volumes:
db_volume:
redis_volume:
opensearch_volume: