-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.override.yml
More file actions
141 lines (127 loc) · 3.53 KB
/
docker-compose.override.yml
File metadata and controls
141 lines (127 loc) · 3.53 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# MarchProxy Development Override Configuration
# This file automatically applies when running `docker-compose up` in development
# It provides development-friendly settings like volume mounts, debug modes, etc.
version: '3.8'
services:
# API Server - Development overrides
api-server:
build:
target: development
environment:
- DEBUG=true
- LOG_LEVEL=debug
- RELOAD=true
- RELEASE_MODE=false # Disable license enforcement in dev
volumes:
- ./api-server:/app:delegated
- /app/.venv # Prevent overwriting virtual environment
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
# Web UI - Development overrides
webui:
build:
target: development
environment:
- NODE_ENV=development
volumes:
- ./webui:/app:delegated
- /app/node_modules # Prevent overwriting node_modules
- /app/dist # Prevent overwriting build artifacts
command: npm run dev -- --host 0.0.0.0
# NLB - Development overrides
proxy-nlb:
build:
target: development
environment:
- LOG_LEVEL=debug
- ENABLE_PPROF=true # Enable Go profiling
volumes:
- ./proxy-nlb:/app:delegated
ports:
- "6060:6060" # pprof debug port
# ALB - Development overrides
proxy-alb:
build:
target: development
environment:
- ENVOY_LOG_LEVEL=debug
- ENABLE_PPROF=true
volumes:
- ./proxy-l7:/app:delegated
ports:
- "6061:6060" # pprof debug port
# DBLB - Development overrides
proxy-dblb:
profiles:
- dev
- dblb
build:
target: development
environment:
- LOG_LEVEL=debug
- ENABLE_PPROF=true
- ENABLE_QUERY_LOGGING=true # Log all database queries
volumes:
- ./proxy-dblb:/app:delegated
ports:
- "6062:6060" # pprof debug port
# AILB - Development overrides
proxy-ailb:
profiles:
- dev
- ailb
build:
target: development
environment:
- LOG_LEVEL=debug
- DEBUG=true
- RELOAD=true
volumes:
- ./proxy-ailb:/app:delegated
- /app/.venv # Prevent overwriting virtual environment
ports:
- "5678:5678" # debugpy port for Python debugging
# RTMP - Development overrides
proxy-rtmp:
profiles:
- dev
- rtmp
build:
target: development
environment:
- LOG_LEVEL=debug
- ENABLE_PPROF=true
- FFMPEG_LOG_LEVEL=verbose
volumes:
- ./proxy-rtmp:/app:delegated
- rtmp_streams_dev:/streams # Separate dev volume
ports:
- "6064:6060" # pprof debug port
# Postgres - Development overrides
postgres:
command: postgres -c shared_buffers=64MB -c max_connections=20 -c log_statement=all
environment:
- POSTGRES_LOG_STATEMENT=all # Log all SQL statements
# Redis - Development overrides
redis:
command: redis-server --appendonly yes --requirepass ${REDIS_PASSWORD:-redis123} --maxmemory 64mb --loglevel debug
# Jaeger - Development overrides
jaeger:
environment:
- COLLECTOR_OTLP_ENABLED=true
- LOG_LEVEL=debug
# Prometheus - Development overrides
prometheus:
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.enable-lifecycle'
- '--log.level=debug'
# Grafana - Development overrides
grafana:
environment:
- GF_LOG_LEVEL=debug
- GF_AUTH_ANONYMOUS_ENABLED=true # Allow anonymous access in dev
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
volumes:
rtmp_streams_dev:
driver: local