forked from NOVA-9th/nova-be
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
98 lines (92 loc) · 2.27 KB
/
docker-compose.yml
File metadata and controls
98 lines (92 loc) · 2.27 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
86
87
88
89
90
91
92
93
94
95
96
97
98
version: "3.8"
services:
app:
image: ${DOCKER_IMAGE}:${IMAGE_TAG}
container_name: nova-app
restart: always
ports:
- "8080:8080"
healthcheck:
test: [ "CMD-SHELL", "curl -f http://localhost:8080/actuator/health || exit 1" ]
interval: 30s
timeout: 5s
retries: 5
start_period: 60s
environment:
- "SPRING_PROFILES_ACTIVE=prod"
volumes:
- ./nova:/app/config
logging: &default-logging
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
nginx:
image: nginx:latest
ports:
- "443:443"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/ssl:/etc/nginx/ssl
restart: always
depends_on:
- app
logging: *default-logging
prometheus:
user: "1000"
image: prom/prometheus:latest
container_name: prometheus
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus/data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--storage.tsdb.retention.time=15d'
- '--web.enable-remote-write-receiver'
expose:
- "9090"
restart: unless-stopped
logging: *default-logging
grafana:
user: "1000"
depends_on:
- loki
- prometheus
image: grafana/grafana:latest
container_name: grafana
ports:
- "3000:3000"
volumes:
- ./grafana/data:/var/lib/grafana
restart: always
logging: *default-logging
loki:
user: "1000"
image: grafana/loki:latest
container_name: loki
volumes:
- ./loki/loki.yml:/etc/loki/loki.yml
- ./loki/data:/loki
command: -config.file=/etc/loki/loki.yml
expose:
- "3100"
restart: unless-stopped
logging: *default-logging
alloy:
depends_on:
- loki
- prometheus
image: grafana/alloy:latest
container_name: alloy
volumes:
- ./alloy/alloy.yml:/etc/alloy/config.alloy:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
command: >
run
--server.http.listen-addr=0.0.0.0:12345
--storage.path=/var/lib/alloy/data
--disable-reporting
/etc/alloy/config.alloy
restart: unless-stopped
logging: *default-logging