-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 1.28 KB
/
docker-compose.yml
File metadata and controls
52 lines (48 loc) · 1.28 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
version: "3.9"
services:
postgres:
image: postgres:16-alpine
container_name: quickgithub-postgres
restart: unless-stopped
ports:
- "127.0.0.1:5433:5432"
environment:
POSTGRES_USER: quickgithub
POSTGRES_PASSWORD: quickgithub_dev
POSTGRES_DB: quickgithub
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U quickgithub -d quickgithub"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
redis:
image: redis:7-alpine
container_name: quickgithub-redis
restart: unless-stopped
ports:
- "127.0.0.1:6379:6379"
command: redis-server --maxmemory 512mb --maxmemory-policy allkeys-lru
volumes:
- redisdata:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 5s
otel-lgtm:
image: grafana/otel-lgtm:latest
container_name: quickgithub-otel-lgtm
restart: unless-stopped
ports:
- "127.0.0.1:4000:3000" # Grafana UI (4000 to avoid clash with Next.js on 3000)
- "127.0.0.1:4317:4317" # OTLP gRPC
- "127.0.0.1:4318:4318" # OTLP HTTP
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
volumes:
pgdata:
redisdata: