-
Notifications
You must be signed in to change notification settings - Fork 127
Expand file tree
/
Copy pathcompose.yaml
More file actions
69 lines (65 loc) · 1.6 KB
/
Copy pathcompose.yaml
File metadata and controls
69 lines (65 loc) · 1.6 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
services:
vol-init:
image: busybox:1.36
user: "0"
volumes:
- quicknotes-data:/data
command: ["sh", "-c", "mkdir -p /data && chown 65532:65532 /data"]
restart: "no"
quicknotes:
build:
context: ./app
dockerfile: Dockerfile
image: quicknotes:lab6
depends_on:
vol-init:
condition: service_completed_successfully
ports:
- "8080:8080"
environment:
ADDR: ":8080"
DATA_PATH: "/data/notes.json"
SEED_PATH: "/seed.json"
volumes:
- quicknotes-data:/data
restart: unless-stopped
healthcheck:
test: ["CMD", "/healthcheck"]
interval: 10s
timeout: 3s
retries: 3
start_period: 5s
cap_drop:
- ALL
read_only: true
tmpfs:
- /tmp
security_opt:
- no-new-privileges:true
prometheus:
image: prom/prometheus:v3.2.1
ports:
- "9090:9090"
volumes:
- ./monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- ./monitoring/prometheus/rules:/etc/prometheus/rules:ro
depends_on:
quicknotes:
condition: service_healthy
restart: unless-stopped
grafana:
image: grafana/grafana:13.0.3
ports:
- "3000:3000"
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: lab8-grafana-admin
GF_USERS_ALLOW_SIGN_UP: "false"
volumes:
- ./monitoring/grafana/provisioning:/etc/grafana/provisioning:ro
- ./monitoring/grafana/dashboards:/var/lib/grafana/dashboards:ro
depends_on:
- prometheus
restart: unless-stopped
volumes:
quicknotes-data: