fix: remove depends_on and fix prompt display in install script
- Remove depends_on from docker-compose.yml (services handle reconnection) - This allows the override to disable ollama without errors - Fix prompt display when running via curl | bash (print to stderr) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -11,9 +11,6 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- OLLAMA_API_URL=http://ollama:11434
|
- OLLAMA_API_URL=http://ollama:11434
|
||||||
- BACKEND_URL=http://backend:9090
|
- BACKEND_URL=http://backend:9090
|
||||||
depends_on:
|
|
||||||
- ollama
|
|
||||||
- backend
|
|
||||||
networks:
|
networks:
|
||||||
- vessel-network
|
- vessel-network
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@@ -30,8 +27,6 @@ services:
|
|||||||
- PORT=9090
|
- PORT=9090
|
||||||
volumes:
|
volumes:
|
||||||
- backend-data:/app/data
|
- backend-data:/app/data
|
||||||
depends_on:
|
|
||||||
- ollama
|
|
||||||
networks:
|
networks:
|
||||||
- vessel-network
|
- vessel-network
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|||||||
@@ -90,10 +90,12 @@ prompt_yes_no() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Read from /dev/tty to work with curl | bash
|
# Read from /dev/tty to work with curl | bash
|
||||||
|
# Print prompt to stderr so it shows even when stdin is redirected
|
||||||
if [[ -t 0 ]]; then
|
if [[ -t 0 ]]; then
|
||||||
read -r -p "$prompt" response
|
read -r -p "$prompt" response
|
||||||
else
|
else
|
||||||
read -r -p "$prompt" response < /dev/tty 2>/dev/null || response="$default"
|
printf "%s" "$prompt" >&2
|
||||||
|
read -r response < /dev/tty 2>/dev/null || response="$default"
|
||||||
fi
|
fi
|
||||||
response="${response:-$default}"
|
response="${response:-$default}"
|
||||||
|
|
||||||
@@ -231,14 +233,12 @@ services:
|
|||||||
profiles: ["disabled"]
|
profiles: ["disabled"]
|
||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
depends_on: []
|
|
||||||
environment:
|
environment:
|
||||||
- OLLAMA_API_URL=http://host.docker.internal:11434
|
- OLLAMA_API_URL=http://host.docker.internal:11434
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "host.docker.internal:host-gateway"
|
- "host.docker.internal:host-gateway"
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
depends_on: []
|
|
||||||
environment:
|
environment:
|
||||||
- OLLAMA_URL=http://host.docker.internal:11434
|
- OLLAMA_URL=http://host.docker.internal:11434
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
|
|||||||
Reference in New Issue
Block a user