File size: 6,787 Bytes
4b1daed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
services:
  # =============================================================================
  # Backing Services
  # =============================================================================

  - type: redis
    name: amaniquery-redis
    plan: free
    ipAllowList: [] # Internal access only

  # =============================================================================
  # Main Services
  # =============================================================================

  - type: web
    name: amaniquery-portal
    runtime: docker
    plan: free
    dockerfilePath: services/portal/Dockerfile
    dockerContext: .
    envVars:
      - fromGroup: amaniquery-shared
      - key: PORT
        value: 8080
      - key: DB_HOST
        fromDatabase:
          name: amaniquery-db
          property: host
      - key: DB_PORT
        fromDatabase:
          name: amaniquery-db
          property: port
      - key: DB_USER
        fromDatabase:
          name: amaniquery-db
          property: user
      - key: DB_PASSWORD
        fromDatabase:
          name: amaniquery-db
          property: password
      - key: DB_NAME
        fromDatabase:
          name: amaniquery-db
          property: database
      - key: REDIS_HOST
        fromService:
          type: redis
          name: amaniquery-redis
          property: host
      - key: REDIS_PORT
        fromService:
          type: redis
          name: amaniquery-redis
          property: port

  - type: web
    name: amaniquery-ingestion
    runtime: docker
    plan: free
    dockerfilePath: services/ingestion/Dockerfile
    dockerContext: .
    envVars:
      - fromGroup: amaniquery-shared
      - key: PORT
        value: 8080
      - key: DB_HOST
        fromDatabase:
          name: amaniquery-db
          property: host
      - key: DB_PORT
        fromDatabase:
          name: amaniquery-db
          property: port
      - key: DB_USER
        fromDatabase:
          name: amaniquery-db
          property: user
      - key: DB_PASSWORD
        fromDatabase:
          name: amaniquery-db
          property: password
      - key: DB_NAME
        fromDatabase:
          name: amaniquery-db
          property: database
      - key: REDIS_HOST
        fromService:
          type: redis
          name: amaniquery-redis
          property: host
      - key: REDIS_PORT
        fromService:
          type: redis
          name: amaniquery-redis
          property: port

  - type: web
    name: amaniquery-agent
    runtime: docker
    plan: free
    dockerfilePath: deployments/docker/Dockerfile.agent
    dockerContext: .
    envVars:
      - fromGroup: amaniquery-shared
      - key: AMANI_SERVER_HTTP_PORT
        value: 8080
      - key: AMANI_SERVER_GRPC_PORT
        value: 9090
      - key: REDIS_URL
        fromService:
          type: redis
          name: amaniquery-redis
          property: connectionString

  - type: web
    name: amaniquery-retriever
    runtime: docker
    plan: free
    dockerfilePath: deployments/docker/Dockerfile.retriever
    dockerContext: .
    envVars:
      - fromGroup: amaniquery-shared
      - key: PORT
        value: 9090
      - key: REDIS_URL
        fromService:
          type: redis
          name: amaniquery-redis
          property: connectionString
      - key: REDIS_ADDR
        value: amaniquery-redis:6379

  - type: web
    name: amaniquery-generator
    runtime: docker
    plan: free
    dockerfilePath: deployments/docker/Dockerfile.generator
    dockerContext: .
    envVars:
      - fromGroup: amaniquery-shared
      - key: PORT
        value: 9090
      - key: REDIS_URL
        fromService:
          type: redis
          name: amaniquery-redis
          property: connectionString
      - key: REDIS_ADDR
        value: amaniquery-redis:6379

  # =============================================================================
  # Notification Services
  # =============================================================================

  - type: web
    name: amaniquery-notifications-gateway
    runtime: docker
    plan: free
    dockerfilePath: deployments/docker/Dockerfile.gateway
    dockerContext: .
    envVars:
      - fromGroup: amaniquery-shared
      - key: PORT
        value: 9090

  - type: web
    name: amaniquery-notifications-worker
    runtime: docker
    plan: free
    dockerfilePath: services/notifications/Dockerfile.worker
    dockerContext: .
    envVars:
      - fromGroup: amaniquery-shared
      - key: REDIS_HOST
        fromService:
          type: redis
          name: amaniquery-redis
          property: host
      - key: REDIS_PORT
        fromService:
          type: redis
          name: amaniquery-redis
          property: port
      - key: REDIS_ADDR
        value: amaniquery-redis:6379

  # =============================================================================
  # Frontend Services
  # =============================================================================

  - type: web
    name: amaniquery-web-app
    runtime: docker
    plan: free
    dockerfilePath: apps/web/Dockerfile
    dockerContext: frontend
    envVars:
      - fromGroup: amaniquery-shared
      - key: VITE_API_BASE_URL
        value: https://amaniquery-portal.onrender.com
      - key: VITE_WS_URL
        value: wss://amaniquery-portal.onrender.com
      - key: VITE_SSE_URL
        value: https://amaniquery-portal.onrender.com/sse

  - type: web
    name: amaniquery-developer-portal
    runtime: docker
    plan: free
    dockerfilePath: apps/developer-portal/Dockerfile
    dockerContext: frontend
    envVars:
      - fromGroup: amaniquery-shared
      - key: VITE_API_BASE_URL
        value: https://amaniquery-portal.onrender.com

  - type: web
    name: amaniquery-admin-portal
    runtime: docker
    plan: free
    dockerfilePath: apps/admin/Dockerfile
    dockerContext: frontend
    envVars:
      - fromGroup: amaniquery-shared
      - key: VITE_API_BASE_URL
        value: https://amaniquery-portal.onrender.com
      - key: VITE_WS_URL
        value: wss://amaniquery-portal.onrender.com
      - key: VITE_SSE_URL
        value: https://amaniquery-portal.onrender.com/sse

databases:
  - name: amaniquery-db
    plan: free
    databaseName: amaniquery_portal
    user: portal_user

envVarGroups:
  - name: amaniquery-shared
    envVars:
      - key: ENV
        value: production
      - key: LOG_LEVEL
        value: info

      # Vector Store (Qdrant)
      - key: QDRANT_URL
        sync: false
      - key: QDRANT_API_KEY
        sync: false

      # LLM Providers
      - key: GEMINI_API_KEY
        sync: false
      - key: OPENAI_API_KEY
        sync: false

      # Security
      - key: JWT_SECRET
        generateValue: true
      - key: JWT_ISSUER
        value: amaniquery