Git Product home page Git Product logo

flowiseai-railway's Introduction

๐Ÿ“ Notes

Use the flowise-railway template (https://railway.app/template/pn4G8S) if you don't need pre-configured persisted volume, postgis and private networking on Railway.

Deploy Flowise with Railway

โœจ Features

  • Pre-configured persisted volume.
  • Most of the Flowise configs are pre-configured.
  • Use Postgres/Postgis as the default database for Flowise.
  • The communication from Flowise to database is accomplished through the railway internal private network, reducing unnecessary egress fees.

โœ… Prerequisite

  • Postgres or Postgis was already deployed to an environment on Railway
  • Flowise and Postgres have to be deployed to the same environment in order to leverage the benefits of private networking on Railway.
  • flowise database was already created in Postgres

๐Ÿ’โ€โ™‚๏ธ Usage

Deploy on Railway

๐Ÿš€ Quick start

  1. Click Deploy Now

  2. Change to your preferred repository name

  3. Click Configure and click Save Config for both services.

  4. Click Deploy.

  5. Let Railway deploy all the services for you.

  6. Once the process is successful, you will be able to view a deployed URL.

๐Ÿ’ก What if I would like to use my current Postgres/PostGIS database server?

  1. Click Deploy Now

  2. Change to your preferred repository name

  3. (Important) Configure the database-related environment variables to point to your current PostGIS database.

  • DATABASE_HOST (Private or public network database host. i.e. postgre.railway.internal)

  • DATABASE_NAME (Database name. i.e. flowise)

  • DATABASE_PASSWORD (Database user password)

  • DATABASE_PORT (Database private or public network port. i.e. 5432)

  • DATABASE_USER (Database user - A database user that allows you CRUD the flowise database)

  1. Click Deploy

  2. Let Railway deploy all the services for you.

  3. Once the process is successful, you will be able to view a deployed URL.

  4. Delete the PostGIS database service that comes with this template if no longer needed.

๐Ÿ’โ€โ™€๏ธ Example screenshots

Flowise AI login screen!

Flowise AI version screen!

Flowise database!


Start Flowise with Docker Compose (Local development)

๐Ÿ’โ€โ™‚๏ธ Usage

  1. Create .env file and specify the PORT (refer to .env.example)
  2. docker-compose up -d
  3. Open http://localhost:3000
  4. You can bring the containers down by docker-compose stop

๐Ÿ”’ Authentication

  1. Create .env file and specify the PORT, FLOWISE_USERNAME, and FLOWISE_PASSWORD (refer to .env.example)
  2. Pass FLOWISE_USERNAME and FLOWISE_PASSWORD to the docker-compose.yml file:
    environment:
        - PORT=${PORT}
        - FLOWISE_USERNAME=${FLOWISE_USERNAME}
        - FLOWISE_PASSWORD=${FLOWISE_PASSWORD}
    
  3. docker-compose up -d
  4. Open http://localhost:3000
  5. You can bring the containers down by docker-compose stop

๐ŸŒฑ Env Variables

If you like to persist your data (flows, logs, apikeys, credentials), set these variables in the .env file inside docker folder:

  • DATABASE_PATH=/root/.flowise
  • APIKEY_PATH=/root/.flowise
  • LOG_PATH=/root/.flowise/logs
  • SECRETKEY_PATH=/root/.flowise

Flowise also support different environment variables to configure your instance. Read more

Credit

flowiseai-railway's People

Contributors

davepoon avatar

Stargazers

Will avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.