-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
109 lines (101 loc) · 2.71 KB
/
docker-compose.dev.yml
File metadata and controls
109 lines (101 loc) · 2.71 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
99
100
101
102
103
104
105
106
107
108
109
# Docker Compose Override for Development
#
# This file provides development-specific configurations:
# - Volume mounts for hot-reload
# - Debug ports
# - Development-friendly settings
#
# Usage:
# docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
version: '3.8'
services:
# Development overrides for Ingestion API
ingestion-api:
build:
context: ./services/ingestion_api
dockerfile: Dockerfile
target: development # Use development stage if multi-stage build
volumes:
# Mount source code for hot-reload
- ./services/ingestion_api:/app
- ./services/shared:/app/shared
environment:
- LOG_LEVEL=DEBUG
- PYTHONUNBUFFERED=1
- RELOAD=true
command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
ports:
- "8000:8000"
- "5678:5678" # Python debugger port
# Development overrides for Validation Worker
validation-worker:
build:
context: ./services/validation_worker
dockerfile: Dockerfile
target: development
volumes:
- ./services/validation_worker:/app
- ./services/shared:/app/shared
environment:
- LOG_LEVEL=DEBUG
- PYTHONUNBUFFERED=1
# Development overrides for Aggregation Service
aggregation:
build:
context: ./services/aggregation
dockerfile: Dockerfile
target: development
volumes:
- ./services/aggregation:/app
- ./services/shared:/app/shared
environment:
- LOG_LEVEL=DEBUG
- PYTHONUNBUFFERED=1
# Add Redis Exporter for detailed metrics
redis-exporter:
image: oliver006/redis_exporter:latest
container_name: voting-redis-exporter
ports:
- "9121:9121"
environment:
- REDIS_ADDR=redis:6379
networks:
- voting-network
depends_on:
- redis
# Add PostgreSQL Exporter for database metrics
postgres-exporter:
image: prometheuscommunity/postgres-exporter:latest
container_name: voting-postgres-exporter
ports:
- "9187:9187"
environment:
- DATA_SOURCE_NAME=postgresql://voting_user:voting_password@postgres:5432/voting?sslmode=disable
networks:
- voting-network
depends_on:
- postgres
# Add Node Exporter for system metrics
node-exporter:
image: prom/node-exporter:latest
container_name: voting-node-exporter
ports:
- "9100:9100"
command:
- '--path.rootfs=/host'
volumes:
- /:/host:ro,rslave
networks:
- voting-network
# Add Adminer for easy database management
adminer:
image: adminer:latest
container_name: voting-adminer
ports:
- "8080:8080"
environment:
- ADMINER_DEFAULT_SERVER=postgres
networks:
- voting-network
depends_on:
- postgres