-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (49 loc) · 1.13 KB
/
docker-compose.yml
File metadata and controls
53 lines (49 loc) · 1.13 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
version: '3.8'
services:
# Spring Boot 애플리케이션
app:
build:
context: .
dockerfile: Dockerfile
container_name: wayble-app
restart: unless-stopped
ports:
- "8080:8080"
environment:
- SPRING_PROFILES_ACTIVE=develop
- ELASTICSEARCH_HOST=elasticsearch
- ELASTICSEARCH_PORT=9200
- TZ=Asia/Seoul
- JAVA_TOOL_OPTIONS=-Duser.timezone=Asia/Seoul
- LOG_DIR=/app/logs
volumes:
- ./logs:/app/logs # 로그 파일 영속성을 위한 볼륨 마운트
depends_on:
- elasticsearch
networks:
- app-network
# Elasticsearch
elasticsearch:
build:
context: .
dockerfile: Dockerfile.elasticsearch
container_name: elasticsearch
image: es-with-nori:9.0.2
restart: unless-stopped
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- ES_JAVA_OPTS=-Xms384m -Xmx384m
ports:
- "9200:9200"
- "9300:9300"
volumes:
- esdata:/usr/share/elasticsearch/data
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
esdata:
driver: local