Skip to content

Commit

Permalink
fix: fix docker compose and add instructions (langflow-ai#2654)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoloboschi authored Jul 12, 2024
1 parent c522a7a commit 68e9617
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 330 deletions.
31 changes: 13 additions & 18 deletions deploy/.env.example
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
Expand All @@ -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
Expand All @@ -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
21 changes: 21 additions & 0 deletions deploy/README.md
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.
2 changes: 0 additions & 2 deletions deploy/docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.8"

services:
proxy:
ports:
Expand Down
277 changes: 0 additions & 277 deletions deploy/docker-compose.with_tests.yml

This file was deleted.

Loading

0 comments on commit 68e9617

Please sign in to comment.