mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-24 02:05:11 +08:00
* fix: Resolve relative paths to absolute in Settings class Added functionality to resolve relative paths to absolute paths in the Settings class to ensure correct handling of directory creation. This change improves robustness when dealing with user-defined paths. * fix: Update LANGFLOW_CONFIG_DIR path in docker-compose.yml Changed the LANGFLOW_CONFIG_DIR environment variable from a relative path to an absolute path to ensure correct directory resolution in the Docker setup. This improves the reliability of the configuration in various deployment environments.
30 lines
860 B
YAML
30 lines
860 B
YAML
services:
|
|
langflow:
|
|
image: langflowai/langflow:latest # or another version tag on https://hub.docker.com/r/langflowai/langflow
|
|
pull_policy: always # set to 'always' when using 'latest' image
|
|
ports:
|
|
- "7860:7860"
|
|
depends_on:
|
|
- postgres
|
|
environment:
|
|
- LANGFLOW_DATABASE_URL=postgresql://langflow:langflow@postgres:5432/langflow
|
|
# This variable defines where the logs, file storage, monitor data and secret keys are stored.
|
|
- LANGFLOW_CONFIG_DIR=/app/langflow
|
|
volumes:
|
|
- langflow-data:/app/langflow
|
|
|
|
postgres:
|
|
image: postgres:16
|
|
environment:
|
|
POSTGRES_USER: langflow
|
|
POSTGRES_PASSWORD: langflow
|
|
POSTGRES_DB: langflow
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- langflow-postgres:/var/lib/postgresql/data
|
|
|
|
volumes:
|
|
langflow-postgres:
|
|
langflow-data:
|