Skip to content

Commit

Permalink
feat: add kibana for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
mashirozx committed Aug 16, 2022
1 parent 06c6658 commit c5b9301
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ services:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_HOST_AUTH_METHOD: trust
command: ["postgres", "-c", "log_statement=all"]
ports:
- 5432:5432
networks:
Expand All @@ -69,19 +70,49 @@ services:
cluster.name: es-mastodon
discovery.type: single-node
bootstrap.memory_lock: 'true'
ingest.geoip.downloader.enabled: 'false'
volumes:
- es-data:/usr/share/elasticsearch/data
networks:
- internal_network
- external_network
ports:
- '9200:9200'
ulimits:
memlock:
soft: -1
hard: -1

kibana:
image: docker.elastic.co/kibana/kibana:7.17.4
restart: unless-stopped
environment:
# - SERVERNAME=es-mastodon
- ELASTICSEARCH_HOSTS=http://es:9200
volumes:
- kibana-data:/usr/share/kibana/data
networks:
- internal_network
- external_network
ports:
- 5601:5601
healthcheck:
test:
[
"CMD-SHELL",
"curl -s -I http://localhost:5601 | grep -q 'HTTP/1.1 302 Found'",
]
interval: 10s
timeout: 10s
retries: 120
depends_on:
- es

volumes:
postgres-data:
redis-data:
es-data:
kibana-data:

networks:
external_network:
Expand Down

0 comments on commit c5b9301

Please sign in to comment.