-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcompose.override.yml
More file actions
137 lines (119 loc) · 3.27 KB
/
compose.override.yml
File metadata and controls
137 lines (119 loc) · 3.27 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
# Docker Compose override for local development
# This file is automatically loaded by docker compose
# Provides convenient development settings
services:
# API Service - Development Overrides
api:
environment:
# Development environment variables
DEBUG: "true"
LOG_LEVEL: debug
ENABLE_API_KEYS: "false"
API_CORS_ORIGINS: "http://localhost:3000,http://localhost:8080,http://127.0.0.1:3000,http://127.0.0.1:8080"
PYTHONUNBUFFERED: "1"
volumes:
# Mount source code for hot reload (uncomment for development)
# - ./api:/app/api:ro
# - ./worker:/app/worker:ro
# Development storage
- ./storage:/storage
- ./logs:/app/logs
# Expose additional ports for debugging
ports:
- "8000:8000"
- "5678:5678" # Python debugger port
# Override command for development - simple uvicorn with auto-reload
command: ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
# Reduce resource limits for development
deploy:
replicas: 1
resources:
limits:
memory: 2G
cpus: '1.0'
reservations:
memory: 512M
cpus: '0.5'
# Worker Service - Development Overrides
worker:
environment:
LOG_LEVEL: debug
WORKER_CONCURRENCY: "2"
PYTHONUNBUFFERED: "1"
volumes:
# Development storage
- ./storage:/storage
- ./logs:/app/logs
# Reduce replicas for development
deploy:
replicas: 1
resources:
limits:
memory: 2G
cpus: '2.0'
reservations:
memory: 512M
cpus: '0.5'
# PostgreSQL - Development Overrides
postgres:
environment:
# Development database settings
POSTGRES_PASSWORD: dev_password_123
POSTGRES_DB: rendiff_dev
ports:
# Expose postgres for local development tools (use alternate port to avoid conflicts)
- "5433:5432"
volumes:
# Use local development data
- postgres-dev-data:/var/lib/postgresql/data
# Redis - Development Overrides
redis:
ports:
# Expose Redis for local development tools (use alternate port to avoid conflicts)
- "6380:6379"
volumes:
# Use local development data
- redis-dev-data:/data
# Simpler Redis config for development
command: >
redis-server
--appendonly yes
--maxmemory 256mb
--maxmemory-policy allkeys-lru
# Development Tools
mailhog:
image: mailhog/mailhog:v1.0.1
container_name: rendiff_dev_mailhog
ports:
- "1025:1025" # SMTP
- "8025:8025" # Web UI
networks:
- rendiff-net
profiles:
- dev-tools
# Database Admin Tool
pgadmin:
image: dpage/pgadmin4:latest
container_name: rendiff_dev_pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: admin@localhost
PGADMIN_DEFAULT_PASSWORD: admin
PGADMIN_CONFIG_SERVER_MODE: "False"
ports:
- "5050:80"
volumes:
- pgadmin-dev-data:/var/lib/pgadmin
depends_on:
- postgres
networks:
- rendiff-net
profiles:
- dev-tools
# Development volumes
volumes:
postgres-dev-data:
driver: local
redis-dev-data:
driver: local
pgadmin-dev-data:
driver: local