mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-23 21:21:20 +08:00
The reference stack README pointed LANGFLOW_LOG_FILE and LANGFLOW_LOG_DIR at different directories, so following it produced an empty Grafana dashboard: Langflow wrote to one path while Promtail scraped another. It also documented a stdout-scrape alternative the shipped Promtail config does not implement. Make the two paths consistent, require an absolute log path, correct the stdout note, and add a no-Langflow smoke test that writes a sample record and confirms it reaches Loki.
Run Langflow
Docker compose
To run Langflow with Docker compose, you need to have Docker and Docker compose installed on your machine. You can install Docker and Docker compose by following the instructions on the official Docker documentation.
The docker-compose file uses latest tag; it's recommended to pull the latest version of the images before running the docker-compose file.
docker compose pull
To start the Langflow services, run the following command:
docker compose up
After running the command, you can access the Langflow services at the following url: http://localhost:80.
Edit the .env file to change the port or other configurations.