-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
133 lines (120 loc) · 3.26 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
133 lines (120 loc) · 3.26 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
# Development Docker Compose Configuration for RLM Server
#
# This configuration is optimized for local development with:
# - Source code mounting for hot-reload development
# - Debug logging and tools
# - Development-friendly settings
version: '3.8'
services:
# RLM server in development mode
rlm-server-dev:
build:
context: .
dockerfile: Dockerfile.dev
container_name: rlm-server-dev
ports:
- "8080:8080"
- "9229:9229" # Debug port
environment:
# Server configuration
- RLM_SERVER_HOST=0.0.0.0
- RLM_SERVER_PORT=8080
# LLM provider configuration
- RLM_LLM_PROVIDER=openai
- RLM_LLM_MODEL=gpt-4
- RLM_LLM_API_KEY=${OPENAI_API_KEY:-mock-key-for-testing}
# Development-friendly limits
- RLM_MAX_CONTEXT_SIZE=1000000
- RLM_MAX_RECURSIVE_DEPTH=5
- RLM_MAX_ITERATIONS=25
# Debug logging
- RLM_LOG_LEVEL=debug
- RLM_LOG_FORMAT=pretty
- RUST_LOG=debug
- RUST_BACKTRACE=1
# Development settings
- RLM_REQUIRE_API_KEY=false
- RLM_ENABLE_CORS=true
- RLM_CORS_ORIGINS=*
volumes:
# Mount source code for development
- .:/app:cached
- target:/app/target # Cache Cargo build output
# Development logs
- ./dev-logs:/app/logs
# Development config
- ./config.dev.yaml:/app/config.yaml:ro
working_dir: /app
command: ["cargo", "watch", "-x", "run --bin rlm-server"]
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s # Allow time for compilation
networks:
- rlm-dev-network
# Redis for development testing
redis-dev:
image: redis:7-alpine
container_name: rlm-redis-dev
ports:
- "6379:6379"
volumes:
- redis-dev-data:/data
networks:
- rlm-dev-network
# Mailhog for email testing
mailhog:
image: mailhog/mailhog
container_name: rlm-mailhog
ports:
- "1025:1025" # SMTP
- "8025:8025" # Web UI
networks:
- rlm-dev-network
# Jaeger for distributed tracing
jaeger:
image: jaegertracing/all-in-one:latest
container_name: rlm-jaeger
ports:
- "14268:14268"
- "16686:16686" # Web UI
environment:
- COLLECTOR_OTLP_ENABLED=true
networks:
- rlm-dev-network
# PostgreSQL for testing database features
postgres-dev:
image: postgres:15-alpine
container_name: rlm-postgres-dev
ports:
- "5432:5432"
environment:
- POSTGRES_DB=rlm_dev
- POSTGRES_USER=rlm_dev
- POSTGRES_PASSWORD=dev123
volumes:
- postgres-dev-data:/var/lib/postgresql/data
- ./scripts/sql:/docker-entrypoint-initdb.d:ro
networks:
- rlm-dev-network
# Wiremock for mocking external APIs
wiremock:
image: wiremock/wiremock:latest
container_name: rlm-wiremock
ports:
- "9999:8080"
volumes:
- ./tests/wiremock/mappings:/home/wiremock/mappings:ro
- ./tests/wiremock/__files:/home/wiremock/__files:ro
command: ["--global-response-templating", "--verbose"]
networks:
- rlm-dev-network
networks:
rlm-dev-network:
driver: bridge
volumes:
target: # Cargo build cache
redis-dev-data:
postgres-dev-data: