langflow/docker_example/pre.docker-compose.yml
Gabriel Luiz Freitas Almeida 9d5d40f6a6
Fix ownership issue with /app directory in Dockerfile (#1979)
chore: Update Dockerfile to fix ownership issue with /app directory
2024-05-27 06:53:19 -07:00

30 lines
722 B
YAML

version: "3.8"
services:
langflow:
image: langflowai/langflow:1.0-alpha
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: