-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
82 lines (66 loc) · 1.95 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
services:
####################################################################
# Elastic Search
###################################################################
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:8.17.0
container_name: elastic
environment:
- http.max_content_length=200mb
- node.name=elastic
- cluster.name=es-docker-cluster
- cluster.initial_master_nodes=elastic
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms10g -Xmx10g"
- xpack.security.enabled=false
- logger.level=WARN
ulimits:
memlock:
soft: -1
hard: -1
nproc: 65536
nofile:
soft: 65536
hard: 65536
volumes:
- /opt/open4goods/elastic-data:/usr/share/elasticsearch/data
ports:
- "9200:9200"
networks:
- o4g-network
####################################################################
# Redis
###################################################################
# redis:
# image: bitnami/redis:7.4.0
# container_name: redis
# command: ["redis-server", "--stop-writes-on-bgsave-error","no","--protected-mode","no", "--appendonly", "no", "--maxmemory", "20mb", "--maxmemory-policy", "allkeys-lru"]
# ports:
# - 6379:6379
# environment:
# - ALLOW_EMPTY_PASSWORD=yes
#
# networks:
# - o4g-network
####################################################################
# Kibana
###################################################################
# Uncomment the below section to enable kibana
kibana:
image: docker.elastic.co/kibana/kibana:8.17.0
container_name: kibana
depends_on:
- elastic
ports:
- "5601:5601"
environment:
ELASTICSEARCH_URL: http://elastic:9200
ELASTICSEARCH_HOSTS: http://elastic:9200
networks:
- o4g-network
volumes:
elastic-data:
driver: local
networks:
o4g-network:
driver: bridge