diff --git a/docs/docs/Deployment/deployment-docker.md b/docs/docs/Deployment/deployment-docker.md index 7bdf64203..b49a1861d 100644 --- a/docs/docs/Deployment/deployment-docker.md +++ b/docs/docs/Deployment/deployment-docker.md @@ -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. \ No newline at end of file