Skip to content

Commit 30351e9

Browse files
authored
Merge pull request #172 from NillionNetwork/fix/redis_config_url
fix: redis url not properly obtained
2 parents d1d9f2e + 93ebdf4 commit 30351e9

25 files changed

Lines changed: 49 additions & 71 deletions

.env.ci

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ POSTGRES_PORT = 5432
4242
REDIS_URL = "redis://redis:6379"
4343

4444
# Model Discovery Redis Docker Compose Config
45-
DISCOVERY_HOST = "redis"
46-
DISCOVERY_PORT = 6379
45+
DISCOVERY_URL = "redis://redis:6379"
4746

4847
# Grafana Docker Compose Config
4948
GF_SECURITY_ADMIN_USER = "admin"

.env.sample

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ POSTGRES_PORT = 5432
3737
# Redis Docker Compose Config
3838
REDIS_URL = "redis://redis:6379"
3939

40+
# Model Discovery Redis Docker Compose Config
41+
DISCOVERY_URL = "redis://redis:6379"
42+
4043
# Etcd Docker Compose Config
4144
ETCD_HOST = "etcd"
4245
ETCD_PORT = 2379

docker/compose/docker-compose.deepseek-14b-gpu.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ services:
2424
environment:
2525
- SVC_HOST=deepseek_14b_gpu
2626
- SVC_PORT=8000
27-
- DISCOVERY_HOST=redis
28-
- DISCOVERY_PORT=6379
27+
- DISCOVERY_URL=redis://redis:6379
2928
- TOOL_SUPPORT=false
3029
volumes:
3130
- hugging_face_models:/root/.cache/huggingface # cache models

docker/compose/docker-compose.gemma-27b-gpu.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ services:
2929
environment:
3030
- SVC_HOST=gemma_27b_gpu
3131
- SVC_PORT=8000
32-
- DISCOVERY_HOST=redis
33-
- DISCOVERY_PORT=6379
32+
- DISCOVERY_URL=redis://redis:6379
3433
- TOOL_SUPPORT=false
3534
- MULTIMODAL_SUPPORT=true
3635
- MODEL_NUM_RETRIES=60

docker/compose/docker-compose.gemma-4b-gpu.ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ services:
2828
environment:
2929
- SVC_HOST=gemma_4b_gpu
3030
- SVC_PORT=8000
31-
- DISCOVERY_HOST=redis
32-
- DISCOVERY_PORT=6379
31+
- DISCOVERY_URL=redis://redis:6379
3332
- TOOL_SUPPORT=false
3433
- MULTIMODAL_SUPPORT=true
3534
- CUDA_LAUNCH_BLOCKING=1

docker/compose/docker-compose.gpt-120b-gpu.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ services:
2828
environment:
2929
- SVC_HOST=gpt_120b_gpu
3030
- SVC_PORT=8000
31-
- DISCOVERY_HOST=redis
32-
- DISCOVERY_PORT=6379
31+
- DISCOVERY_URL=redis://redis:6379
3332
- TOOL_SUPPORT=true
3433
volumes:
3534
- hugging_face_models:/root/.cache/huggingface # cache models

docker/compose/docker-compose.gpt-20b-gpu.ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ services:
2323
environment:
2424
- SVC_HOST=gpt_20b_gpu
2525
- SVC_PORT=8000
26-
- DISCOVERY_HOST=redis
27-
- DISCOVERY_PORT=6379
26+
- DISCOVERY_URL=redis://redis:6379
2827
- TOOL_SUPPORT=true
2928
volumes:
3029
- hugging_face_models:/root/.cache/huggingface # cache models

docker/compose/docker-compose.gpt-20b-gpu.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ services:
2828
environment:
2929
- SVC_HOST=gpt_20b_gpu
3030
- SVC_PORT=8000
31-
- DISCOVERY_HOST=redis
32-
- DISCOVERY_PORT=6379
31+
- DISCOVERY_URL=redis://redis:6379
3332
- TOOL_SUPPORT=true
3433
volumes:
3534
- hugging_face_models:/root/.cache/huggingface # cache models

docker/compose/docker-compose.llama-1b-cpu.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ services:
1919
environment:
2020
- SVC_HOST=llama_1b_cpu
2121
- SVC_PORT=8000
22-
- DISCOVERY_HOST=redis
23-
- DISCOVERY_PORT=6379
22+
- DISCOVERY_URL=redis://redis:6379
2423
- TOOL_SUPPORT=true
2524
volumes:
2625
- hugging_face_models:/root/.cache/huggingface

docker/compose/docker-compose.llama-1b-gpu.ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ services:
3232
environment:
3333
- SVC_HOST=llama_1b_gpu
3434
- SVC_PORT=8000
35-
- DISCOVERY_HOST=redis
36-
- DISCOVERY_PORT=6379
35+
- DISCOVERY_URL=redis://redis:6379
3736
- TOOL_SUPPORT=true
3837
- CUDA_LAUNCH_BLOCKING=1
3938
volumes:

0 commit comments

Comments
 (0)