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:
|
environment:
|
||||||
- ADMIN_PASSWORD=MuieSteaua09
|
- ADMIN_PASSWORD=MuieSteaua09
|
||||||
- ADMIN_JWT_SECRET=the3-29-mu-ar3rwfd-dsfhui7
|
- 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
|
- LOCAL_MODEL_ENDPOINT=http://lingvai-translator:5000/predictions
|
||||||
- REPLICATE_MODE=local
|
- REPLICATE_MODE=local
|
||||||
volumes:
|
volumes:
|
||||||
@@ -23,7 +21,7 @@ services:
|
|||||||
image: r8.im/jigsawstack/text-translate@sha256:454df4c49941c05dea05175bd37686d0872c73c1f9366d1c2505db32ade52a89
|
image: r8.im/jigsawstack/text-translate@sha256:454df4c49941c05dea05175bd37686d0872c73c1f9366d1c2505db32ade52a89
|
||||||
container_name: lingvai-translator
|
container_name: lingvai-translator
|
||||||
ports:
|
ports:
|
||||||
- "5030:5000" # 5030 on host for direct access / debugging
|
- "5030:5000"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- lingvai-net
|
- lingvai-net
|
||||||
@@ -31,3 +29,8 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
lingvai-net:
|
lingvai-net:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
ipam:
|
||||||
|
driver: default
|
||||||
|
config:
|
||||||
|
- subnet: 10.100.50.0/24
|
||||||
|
gateway: 10.100.50.1
|
||||||
|
|||||||
Reference in New Issue
Block a user