-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (81 loc) · 1.91 KB
/
docker-compose.yml
File metadata and controls
85 lines (81 loc) · 1.91 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
services:
redis:
image: redis:7-alpine
container_name: fmi-redis
restart: unless-stopped
ports:
- "127.0.0.1:6379:6379"
command: ["redis-server", "--appendonly", "yes"]
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 10
volumes:
- redis_data:/data
fmi-prod:
image: ${ECR_IMAGE_URL}:latest
ports:
- "127.0.0.1:8080:8080"
container_name: fmi-prod
restart: unless-stopped
depends_on:
redis:
condition: service_healthy
environment:
- SPRING_PROFILES_ACTIVE=prod
env_file:
- .env
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/actuator/health" ]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
fmi-dev:
image: ${ECR_IMAGE_URL}:latest
ports:
- "127.0.0.1:8081:8080"
container_name: fmi-dev
restart: unless-stopped
depends_on:
redis:
condition: service_healthy
environment:
- SPRING_PROFILES_ACTIVE=dev
env_file:
- .env
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/actuator/health" ]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "2"
alloy:
image: grafana/alloy:v1.15.0
container_name: alloy
restart: unless-stopped
volumes:
- ./alloy/config.alloy:/etc/alloy/config.alloy
- /var/run/docker.sock:/var/run/docker.sock:ro # 컨테이너 로그 접근 권한
- alloy_data:/var/lib/alloy/data
command:
- run
- --server.http.listen-addr=0.0.0.0:12345
- /etc/alloy/config.alloy
depends_on:
- fmi-prod
- fmi-dev
volumes:
redis_data:
alloy_data: