-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
48 lines (45 loc) · 1.25 KB
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
services:
log-ingestor:
build:
context: .
dockerfile: Dockerfile.ingestor
container_name: log-ingestor
restart: unless-stopped
depends_on:
- elasticsearch
ports:
- "${INGESTOR_PORT:-8080}:8080"
networks:
- logging-net
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:9.2.0
container_name: elasticsearch
restart: unless-stopped
environment:
- discovery.type=single-node
- ES_JAVA_OPTS=-Xms1g -Xmx1g
- path.repo=/usr/share/elasticsearch/snapshots
- xpack.security.enabled=false # has to be disabled since it is true by default, obviously very unsafe NOT EVEN CLOSE TO PRODUCTION READY
ports:
- "9200:9200"
volumes:
- ./data/elasticsearch:/usr/share/elasticsearch/data
- ./snapshots:/usr/share/elasticsearch/snapshots
networks:
- logging-net
kibana:
image: docker.elastic.co/kibana/kibana:9.2.0
container_name: kibana
restart: unless-stopped
depends_on:
- elasticsearch
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
- SERVER_SSL_ENABLED=false
ports:
- "5601:5601"
networks:
- logging-net
networks:
logging-net:
external: true