Skip to content

Commit c5b9301

Browse files
committed
feat: add kibana for dev
1 parent 06c6658 commit c5b9301

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

docker-compose.dev.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ services:
4444
POSTGRES_DB: postgres
4545
POSTGRES_PASSWORD: postgres
4646
POSTGRES_HOST_AUTH_METHOD: trust
47+
command: ["postgres", "-c", "log_statement=all"]
4748
ports:
4849
- 5432:5432
4950
networks:
@@ -69,19 +70,49 @@ services:
6970
cluster.name: es-mastodon
7071
discovery.type: single-node
7172
bootstrap.memory_lock: 'true'
73+
ingest.geoip.downloader.enabled: 'false'
7274
volumes:
7375
- es-data:/usr/share/elasticsearch/data
7476
networks:
7577
- internal_network
78+
- external_network
79+
ports:
80+
- '9200:9200'
7681
ulimits:
7782
memlock:
7883
soft: -1
7984
hard: -1
8085

86+
kibana:
87+
image: docker.elastic.co/kibana/kibana:7.17.4
88+
restart: unless-stopped
89+
environment:
90+
# - SERVERNAME=es-mastodon
91+
- ELASTICSEARCH_HOSTS=http://es:9200
92+
volumes:
93+
- kibana-data:/usr/share/kibana/data
94+
networks:
95+
- internal_network
96+
- external_network
97+
ports:
98+
- 5601:5601
99+
healthcheck:
100+
test:
101+
[
102+
"CMD-SHELL",
103+
"curl -s -I http://localhost:5601 | grep -q 'HTTP/1.1 302 Found'",
104+
]
105+
interval: 10s
106+
timeout: 10s
107+
retries: 120
108+
depends_on:
109+
- es
110+
81111
volumes:
82112
postgres-data:
83113
redis-data:
84114
es-data:
115+
kibana-data:
85116

86117
networks:
87118
external_network:

0 commit comments

Comments
 (0)