-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (33 loc) · 1.1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
34 lines (33 loc) · 1.1 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
services:
server:
build:
context: .
dockerfile: Dockerfile
container_name: chart-analyzer
restart: unless-stopped
ports:
# 호스트 루프백으로만 노출 (LAN 차단). 컨테이너 내부는 0.0.0.0 바인딩.
- "127.0.0.1:8080:8080"
volumes:
# SQLite DB 영속화
- ./data:/app/data
# 설정 파일 (UI에서 알림/리포트/룰 등 저장 시 쓰기 필요)
- ./config:/app/config
# 프론트엔드 (restart.sh에서 npm run build 후 마운트)
- ./web/dist:/app/web/dist:ro
env_file:
- .env
environment:
- ENV=${ENV:-development}
- DB_PATH=/app/data/chart_analyzer.db
# 컨테이너 내부에서는 0.0.0.0으로 바인딩해야 Docker 포트 매핑이 도달 가능.
# 호스트 외부 노출은 ports: "8080:8080"이 127.0.0.1로만 제한하므로 안전.
- SERVER_HOST=0.0.0.0
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8080/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
volumes:
data: