docs: add quickstart dockerfile with default sqlite database (#7952)

* initial-content

* clarify-memory-type

* nits

* restore-section

* cleanup

* more-information

* Apply suggestions from code review

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>

* Update docs/docs/Deployment/deployment-docker.md

Co-authored-by: Tejas Kumar <tejas@tejas.qa>

* Update docs/docs/Deployment/deployment-docker.md

* Apply suggestions from code review

* Update docs/docs/Deployment/deployment-docker.md

---------

Co-authored-by: KimberlyFields <46325568+KimberlyFields@users.noreply.github.com>
Co-authored-by: Tejas Kumar <tejas@tejas.qa>
Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
This commit is contained in:
Mendon Kissling 2025-05-09 17:05:26 -04:00 committed by GitHub
commit 3eadcd5a14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,11 +5,26 @@ slug: /deployment-docker
This guide demonstrates deploying Langflow with Docker and Docker Compose.
Three options are available:
* The [Quickstart](#quickstart) option starts a Docker container with default values.
* The [Docker compose](#clone-the-repo-and-build-the-langflow-docker-container) option builds Langflow with a persistent PostgreSQL database service.
* The [Package your flow as a docker image](#package-your-flow-as-a-Docker-image) option demonstrates packaging an existing flow with a Dockerfile.
For more information on configuring the Docker image, see [Customize the Langflow Docker image with your own code](#customize-the-langflow-docker-image-with-your-own-code).
## Prerequisites
- [Docker](https://docs.docker.com/)
- [Docker Compose](https://docs.docker.com/compose/)
## Quickstart
With Docker installed and running on your system, run this command:
`docker run -p 7860:7860 langflowai/langflow:latest`
Langflow is now accessible at `http://localhost:7860/`.
## Clone the repo and build the Langflow Docker container
1. Clone the Langflow repository:
@ -26,7 +41,7 @@ This guide demonstrates deploying Langflow with Docker and Docker Compose.
Langflow is now accessible at `http://localhost:7860/`.
## Configure Docker services
### Configure Docker services
The Docker Compose configuration spins up two services: `langflow` and `postgres`.
@ -182,4 +197,4 @@ docker build -t myuser/langflow-custom:1.0.0 .
docker run -p 7860:7860 myuser/langflow-custom:1.0.0
```
This approach can be adapted for any other components or custom code you want to add to Langflow by modifying the file paths and component names.
This approach can be adapted for any other components or custom code you want to add to Langflow by modifying the file paths and component names.