forked from langflow-ai/langflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix docker compose and add instructions (langflow-ai#2654)
- Loading branch information
1 parent
c522a7a
commit 68e9617
Showing
6 changed files
with
38 additions
and
330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
DOMAIN=localhost | ||
STACK_NAME=langflow-stack | ||
ENVIRONMENT=development | ||
|
||
TRAEFIK_PUBLIC_NETWORK=traefik-public | ||
TRAEFIK_TAG=langflow-traefik | ||
TRAEFIK_PUBLIC_TAG=traefik-public | ||
|
||
|
||
# Langflow backend configuration | ||
LANGFLOW_LOG_LEVEL=debug | ||
LANGFLOW_SUPERUSER=superuser | ||
LANGFLOW_SUPERUSER_PASSWORD=superuser | ||
LANGFLOW_NEW_USER_IS_ACTIVE=False | ||
|
||
|
||
# Langflow frontend configuration | ||
BACKEND_URL=http://backend:7860 | ||
|
||
# RabbitMQ configuration | ||
RABBITMQ_DEFAULT_USER=langflow | ||
RABBITMQ_DEFAULT_PASS=langflow | ||
|
@@ -17,17 +27,15 @@ DB_HOST=db | |
DB_PORT=5432 | ||
DB_NAME=langflow | ||
|
||
# Logging configuration | ||
LOG_LEVEL=debug | ||
|
||
# DB configuration | ||
POSTGRES_USER=langflow | ||
POSTGRES_PASSWORD=langflow | ||
POSTGRES_DB=langflow | ||
POSTGRES_PORT=5432 | ||
|
||
# Flower configuration | ||
LANGFLOW_CACHE_TYPE=redis | ||
# Disable until https://github.com/langflow-ai/langflow/pull/2655 gets released | ||
#LANGFLOW_CACHE_TYPE=redis | ||
LANGFLOW_REDIS_HOST=result_backend | ||
LANGFLOW_REDIS_PORT=6379 | ||
LANGFLOW_REDIS_DB=0 | ||
|
@@ -38,20 +46,7 @@ BROKER_URL=amqp://langflow:langflow@broker:5672 | |
RESULT_BACKEND=redis://result_backend:6379/0 | ||
C_FORCE_ROOT="true" | ||
|
||
# Frontend configuration | ||
VITE_PROXY_TARGET=http://backend:7860/api/ | ||
BACKEND_URL=http://backend:7860 | ||
|
||
# PGAdmin configuration | ||
PGADMIN_DEFAULT_EMAIL=[email protected] | ||
PGADMIN_DEFAULT_PASSWORD=admin | ||
|
||
# OpenAI configuration (for testing purposes) | ||
OPENAI_API_KEY=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 | ||
|
||
# Superuser configuration | ||
LANGFLOW_SUPERUSER=superuser | ||
LANGFLOW_SUPERUSER_PASSWORD=superuser | ||
|
||
# New user configuration | ||
LANGFLOW_NEW_USER_IS_ACTIVE=False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# 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](https://docs.docker.com/get-docker/). | ||
|
||
The docker-compose file uses `latest` tag; it's recommended to pull the latest version of the images before running the docker-compose file. | ||
|
||
```bash | ||
docker compose pull | ||
``` | ||
|
||
To start the Langflow services, run the following command: | ||
|
||
```bash | ||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
version: "3.8" | ||
|
||
services: | ||
proxy: | ||
ports: | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.