-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
45 lines (42 loc) · 1016 Bytes
/
docker-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
services:
postgres:
image: postgres:14-alpine
ports:
- "5432:5432"
environment:
POSTGRES_DB: more
POSTGRES_USER: more
POSTGRES_PASSWORD: more
redis:
image: redis:7-alpine
healthcheck:
test: [ 'CMD-SHELL', '[ "$$(redis-cli ping)" = "PONG" ]' ]
interval: 10s
timeout: 1s
retries: 5
ports:
- "6379:6379"
elastic:
image: docker.elastic.co/elasticsearch/elasticsearch:8.3.2
restart: always
ports:
- "9200:9200"
deploy:
resources:
limits:
memory: 640M
reservations:
memory: 512M
environment:
discovery.type: "single-node"
cluster.name: "more-cluster"
bootstrap.memory_lock: true
ES_JAVA_OPTS: "-Xms256m -Xmx512m"
xpack.security.enabled: "false"
#ELASTIC_PASSWORD: elastic-more
kibana:
image: docker.elastic.co/kibana/kibana:8.3.2
ports:
- "5601:5601"
environment:
ELASTICSEARCH_HOSTS: http://elastic:9200