-
Notifications
You must be signed in to change notification settings - Fork 117
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
91 lines (85 loc) · 2.37 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
91 lines (85 loc) · 2.37 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
services:
# ── Application Services ─────────────────────────────────────────────────
backend:
build:
context: ./app/backend
dockerfile: Dockerfile
container_name: gatheraa-backend
ports:
- "${BACKEND_PORT:-3000}:3000"
env_file:
- ./app/backend/.env
environment:
- NODE_ENV=production
- REDIS_HOST=redis
- DB_HOST=db
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
networks:
- gatheraa-net
restart: unless-stopped
# ── Database ────────────────────────────────────────────────────────────
db:
image: postgres:16-alpine
container_name: gatheraa-db
ports:
- "${DB_PORT:-5432}:5432"
environment:
- POSTGRES_USER=${DB_USER:-postgres}
- POSTGRES_PASSWORD=${DB_PASS:-postgres}
- POSTGRES_DB=${DB_NAME:-gatherraa}
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- gatheraa-net
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-postgres} -d ${DB_NAME:-gatherraa}"]
interval: 10s
timeout: 5s
retries: 5
# ── Monitoring & Performance Testing ────────────────────────────────────
influxdb:
image: influxdb:1.8
ports:
- "8086:8086"
environment:
- INFLUXDB_DB=k6
networks:
- k6-net
- gatheraa-net
grafana:
image: grafana/grafana:latest
ports:
- "3001:3000"
environment:
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_BASIC_ENABLED=false
volumes:
- ./dashboards:/var/lib/grafana/dashboards
networks:
- k6-net
- gatheraa-net
redis:
image: redis:alpine
ports:
- "${REDIS_PORT:-6379}:6379"
command: >
sh -c 'redis-server${REDIS_PASSWORD:+ --requirepass "$REDIS_PASSWORD"}'
volumes:
- redis_data:/data
networks:
- gatheraa-net
restart: unless-stopped
volumes:
postgres_data:
redis_data:
networks:
k6-net:
driver: bridge
gatheraa-net:
driver: bridge