forked from MLB-FPL/MLB-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (51 loc) · 1.17 KB
/
Copy pathdocker-compose.yml
File metadata and controls
59 lines (51 loc) · 1.17 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
49
50
51
52
53
54
55
56
57
version: '3.8'
services:
# Redis - 3 인스턴스
mlb-redis1:
image: redis:7.2
container_name: mlb-redis1
ports:
- "6379:6379"
networks:
- backend
mlb-redis2:
image: redis:7.2
container_name: mlb-redis2
ports:
- "6380:6379"
networks:
- backend
mlb-redis3:
image: redis:7.2
container_name: mlb-redis3
ports:
- "6381:6379"
networks:
- backend
# Elasticsearch (8.x, 보안 off)
mlb-elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.13.4
container_name: mlb-elasticsearch
environment:
- node.name=es01
- discovery.type=single-node
- xpack.security.enabled=false
- xpack.security.transport.ssl.enabled=false
- ES_JAVA_OPTS=-Xms1g -Xmx1g # 로컬 자원에 맞춰 조절
ports:
- "9200:9200"
- "9300:9300"
volumes:
- es_data:/usr/share/elasticsearch/data
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://localhost:9200 >/dev/null || exit 1"]
interval: 10s
timeout: 5s
retries: 30
networks: [backend]
volumes:
redis_data:
es_data:
networks:
backend:
driver: bridge