Changed from 'expose' to 'ports' to make the Langflow service accessible from the host machine rather than only to linked services.
21 lines
549 B
YAML
21 lines
549 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
langflow:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
restart: unless-stopped
|
|
environment:
|
|
LANGFLOW_SECRET_KEY: ${LANGFLOW_SECRET_KEY:-changeme}
|
|
OPENROUTER_API_KEY: ${OPENROUTER_API_KEY}
|
|
OPENROUTER_BASE_URL: https://openrouter.ai/api/v1
|
|
BROWSERLESS_API_URL: http://browserless.home
|
|
BROWSER_HEADLESS: "true"
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:7860/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 60s
|