-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
79 lines (78 loc) · 1.96 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
version: "3"
services:
postgres:
image: postgres:16.2
restart: always
command: ["-c", "wal_level=logical", "-c", "max_wal_senders=10", "-c", "max_replication_slots=10"]
environment:
POSTGRES_USER: "es_cdc_user"
POSTGRES_PASSWORD: "es_cdc_pass"
POSTGRES_DB: "es_cdc_db"
POSTGRES_HOST_AUTH_METHOD: trust
network_mode: "host"
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:${STACK_VERSION}
labels:
co.elastic.logs/module: elasticsearch
volumes:
- es01_data:/usr/share/elasticsearch/data
networks:
- cdc_net
ports:
- 9200:9200
environment:
- node.name=es01
- cluster.name=es_cdc_cluster
- discovery.type=single-node
- ELASTIC_PASSWORD=es_cdc_es_pass
- bootstrap.memory_lock=true
- xpack.security.enabled=false
- xpack.security.http.ssl.enabled=false
- xpack.security.transport.ssl.enabled=false
ulimits:
memlock:
soft: -1
hard: -1
healthcheck:
test:
[
"CMD-SHELL",
"curl -I -o /dev/null http://localhost:9200 -w '%{http_code}' | grep -q '200'",
]
interval: 10s
timeout: 10s
retries: 120
kibana:
depends_on:
es01:
condition: service_healthy
image: docker.elastic.co/kibana/kibana:7.17.11
networks:
- cdc_net
labels:
co.elastic.logs/module: kibana
volumes:
- kibana1_data:/usr/share/kibana/data
ports:
- "5601:5601"
environment:
- SERVERNAME=kibana
- ELASTICSEARCH_HOSTS=http://es01:9200
- ELASTICSEARCH_USERNAME=kibana_system
- ELASTICSEARCH_PASSWORD=cdc_pass
healthcheck:
test:
[
"CMD-SHELL",
"curl -s -I http://localhost:5601 | grep -q 'HTTP/1.1 302 Found'",
]
interval: 10s
timeout: 10s
retries: 120
volumes:
postgres_data: null
kibana1_data: null
es01_data: null
networks:
cdc_net:
driver: bridge