-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (33 loc) · 836 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (33 loc) · 836 Bytes
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
version: "3.9"
services:
api:
build: .
ports: ["8000:8000"]
environment:
JWT_SECRET: dev-secret-change-in-prod
REDIS_URL: redis://redis:6379
LOG_LEVEL: info
depends_on:
redis: {condition: service_healthy}
restart: unless-stopped
redis:
image: redis:7-alpine
ports: ["6379:6379"]
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
restart: unless-stopped
prometheus:
image: prom/prometheus:latest
volumes: ["./config/prometheus.yml:/etc/prometheus/prometheus.yml"]
ports: ["9090:9090"]
restart: unless-stopped
grafana:
image: grafana/grafana:latest
ports: ["3000:3000"]
environment:
GF_SECURITY_ADMIN_PASSWORD: admin
depends_on: [prometheus]
restart: unless-stopped