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:
|
||||
- OLLAMA_API_URL=http://ollama:11434
|
||||
- BACKEND_URL=http://backend:9090
|
||||
depends_on:
|
||||
- ollama
|
||||
- backend
|
||||
networks:
|
||||
- vessel-network
|
||||
restart: unless-stopped
|
||||
@@ -30,8 +27,6 @@ services:
|
||||
- PORT=9090
|
||||
volumes:
|
||||
- backend-data:/app/data
|
||||
depends_on:
|
||||
- ollama
|
||||
networks:
|
||||
- vessel-network
|
||||
restart: unless-stopped
|
||||
|
||||
@@ -90,10 +90,12 @@ prompt_yes_no() {
|
||||
fi
|
||||
|
||||
# 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
|
||||
read -r -p "$prompt" response
|
||||
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
|
||||
response="${response:-$default}"
|
||||
|
||||
@@ -231,14 +233,12 @@ services:
|
||||
profiles: ["disabled"]
|
||||
|
||||
frontend:
|
||||
depends_on: []
|
||||
environment:
|
||||
- OLLAMA_API_URL=http://host.docker.internal:11434
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
|
||||
backend:
|
||||
depends_on: []
|
||||
environment:
|
||||
- OLLAMA_URL=http://host.docker.internal:11434
|
||||
extra_hosts:
|
||||
|
||||
Reference in New Issue
Block a user