Skip to content

Commit 3d96dd4

Browse files
author
Buddhi Dhananjaya
committed
fix(docs) update gRPC URL and improve Docker configuration for worker backend
1 parent 6822bb1 commit 3d96dd4

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

docs/local-setup.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ MEETING_BOT_RETRY_COUNT=2
118118
119119
120120
# Worker Backend gRPC URL
121-
WORKER_BACKEND_GRPC_URL=worker-grpc
121+
WORKER_BACKEND_GRPC_URL=worker-grpc:5500
122122
```
123123
⚠️ Important: The AWS-related environment variables must be obtained from the AWS Setup Guide. Complete the AWS setup first and copy the relevant values into this file.
124124
</details>
@@ -203,23 +203,24 @@ services:
203203
- backend-api
204204

205205
worker-grpc:
206-
container_name: grpc_server
207-
build:
208-
context: ./worker-backend
209-
dockerfile: Dockerfile
210-
command: python manage.py grpcrunaioserver 0.0.0.0:5500 --max-workers 4
211-
ports:
212-
- "5500:5500"
206+
container_name: grpc-server
207+
restart: always
208+
image: cuemeet:worker-backend
209+
command: bash -c "echo 'Starting gRPC server...' && python manage.py grpcrunaioserver 0.0.0.0:5500 --max-workers 2 --verbosity 3"
210+
# ports: ## Uncomment this if you want to expose grpc port
211+
# - "5500:5500"
213212
depends_on:
214213
- pg-db
215214
- redis
215+
- backend-api
216+
- worker-api
216217

217218
redis:
218219
image: redis:alpine
219220
container_name: redis
220221
restart: always
221-
ports:
222-
- "6379:6379"
222+
# ports: ## Uncomment this if you want to expose redis port
223+
# - "6379:6379"
223224

224225
pg-db:
225226
image: postgres:16
@@ -228,8 +229,8 @@ services:
228229
volumes:
229230
- postgres_data:/var/lib/postgresql/data
230231
- ./pg-db/init-multiple-databases.sql:/docker-entrypoint-initdb.d/init-multiple-databases.sql
231-
ports:
232-
- "5432:5432"
232+
# ports: ## Uncomment this if you want to expose postgres port
233+
# - "5432:5432"
233234
env_file:
234235
- ./pg-db/.db.env
235236

0 commit comments

Comments
 (0)