name: vessel-dev # Development docker-compose - uses host network for direct Ollama access # Reads configuration from .env file services: frontend: build: context: ./frontend dockerfile: Dockerfile.dev # Use host network to access localhost:11434 and backend directly network_mode: host volumes: - ./frontend:/app - /app/node_modules environment: - OLLAMA_API_URL=${OLLAMA_API_URL:-http://localhost:11434} - BACKEND_URL=${BACKEND_URL:-http://localhost:9090} depends_on: - backend backend: build: context: ./backend dockerfile: Dockerfile network_mode: host volumes: - ./backend/data:/app/data environment: - GIN_MODE=release command: ["./server", "-port", "${PORT:-9090}", "-db", "${DB_PATH:-/app/data/vessel.db}", "-ollama-url", "${OLLAMA_URL:-http://localhost:11434}"]