fix: explicit subnet for docker-compose to avoid pool exhaustion
Assign a fixed subnet (10.100.50.0/24) to lingvai-net so Docker doesn't try to auto-allocate from its default address pool, which fails with 'all predefined address pools have been fully subnetted' on hosts running many containers. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -7,8 +7,6 @@ services:
|
||||
environment:
|
||||
- ADMIN_PASSWORD=MuieSteaua09
|
||||
- ADMIN_JWT_SECRET=the3-29-mu-ar3rwfd-dsfhui7
|
||||
# Point directly at the translator container over the internal network
|
||||
# (no Replicate API token needed in local mode)
|
||||
- LOCAL_MODEL_ENDPOINT=http://lingvai-translator:5000/predictions
|
||||
- REPLICATE_MODE=local
|
||||
volumes:
|
||||
@@ -23,7 +21,7 @@ services:
|
||||
image: r8.im/jigsawstack/text-translate@sha256:454df4c49941c05dea05175bd37686d0872c73c1f9366d1c2505db32ade52a89
|
||||
container_name: lingvai-translator
|
||||
ports:
|
||||
- "5030:5000" # 5030 on host for direct access / debugging
|
||||
- "5030:5000"
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- lingvai-net
|
||||
@@ -31,3 +29,8 @@ services:
|
||||
networks:
|
||||
lingvai-net:
|
||||
driver: bridge
|
||||
ipam:
|
||||
driver: default
|
||||
config:
|
||||
- subnet: 10.100.50.0/24
|
||||
gateway: 10.100.50.1
|
||||
|
||||
Reference in New Issue
Block a user