-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
66 lines (62 loc) · 1.49 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
version: "3"
services:
backend:
container_name: backend
build:
context: .
restart: always
ports:
- "8080:8080"
networks:
- aiary
redis:
container_name: redis
image: redis:latest
ports:
- 6379:6379
volumes:
- ./redis/data:/data
labels:
- "name=redis"
- "mode=standalone"
restart: always
command: redis-server
networks:
- aiary
elasticsearch:
container_name: elasticsearch
restart: always
image: docker.elastic.co/elasticsearch/elasticsearch:8.8.1
ports:
- "9200:9200"
- "9300:9300"
environment:
- ES_JAVA_OPTS=-Xms2048m -Xmx2048m
- discovery.type=single-node
- xpack.security.enabled=false
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./elk/elasticsearch/data:/usr/share/elasticsearch/data
networks:
- aiary
logstash:
container_name: logstash
image: docker.elastic.co/logstash/logstash:8.8.1 # elasticsearch 와 같은 버전
build:
context: ./elk # mysql-connector-java 를 설치하기 위해 Dockfile 빌드
volumes: # input conf 설정파일을 컨테이너 내부 경로에 볼륨마운트
- ./elk/logstash/pipeline/logstash.conf:/usr/share/logstash/pipeline/logstash.conf
ports:
- "5044:5044"
environment:
- "xpack.monitoring.enabled=false"
depends_on:
- elasticsearch
networks:
- aiary
networks:
aiary:
driver: bridge