Adds POST /upload (multer diskStorage, max 8MB, image/* only) returning a public URL under /uploads/* that can be passed directly to generate_video.image_url. Uploads live in container temp storage and are discarded on restart (no persistence, no auth). generate_video tool description is now built at startup with the real upload URL baked in (resolved from PUBLIC_BASE_URL env, falls back to http://localhost:<port>) so the AI sees an exact curl command and doesn't have to guess the host. docker-compose: set PUBLIC_BASE_URL=https://video-gen.ai.foresh.com README: new upload section, reverse-proxy note, FAQ entries
45 lines
999 B
YAML
45 lines
999 B
YAML
services:
|
|
mcp-web-search-free:
|
|
build: ./web-search-free
|
|
container_name: mcp-web-search-free
|
|
restart: unless-stopped
|
|
expose:
|
|
- "3000"
|
|
environment:
|
|
- VIRTUAL_HOST=web-search.ai.foresh.com
|
|
- VIRTUAL_PORT=3000
|
|
- CERT_NAME=default
|
|
networks:
|
|
- my-app-network
|
|
|
|
mcp-image-gen:
|
|
build: ./image-gen
|
|
container_name: mcp-image-gen
|
|
restart: unless-stopped
|
|
expose:
|
|
- "3000"
|
|
environment:
|
|
- VIRTUAL_HOST=image-gen.ai.foresh.com
|
|
- VIRTUAL_PORT=3000
|
|
- CERT_NAME=default
|
|
networks:
|
|
- my-app-network
|
|
|
|
mcp-video-gen:
|
|
build: ./video-gen
|
|
container_name: mcp-video-gen
|
|
restart: unless-stopped
|
|
expose:
|
|
- "3000"
|
|
environment:
|
|
- VIRTUAL_HOST=video-gen.ai.foresh.com
|
|
- VIRTUAL_PORT=3000
|
|
- CERT_NAME=default
|
|
- PUBLIC_BASE_URL=https://video-gen.ai.foresh.com
|
|
networks:
|
|
- my-app-network
|
|
|
|
networks:
|
|
my-app-network:
|
|
external: true
|