lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Azure / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
44.4k stars 9.95k forks source link

[Request] 提供一个部署服务端数据库版的docker-compose.yml #3569

Closed 370738206 closed 2 months ago

370738206 commented 2 months ago

🥰 需求描述

提供一个部署服务端数据库版的docker-compose.yml

🧐 解决方案

version: '3.8'

services:
  postgres:
    image: pgvector/pgvector:pg16
    container_name: my-postgres
    environment:
      POSTGRES_PASSWORD: mysecretpassword
    ports:
      - "5432:5432"
    volumes:
      - ./pgdata:/var/lib/postgresql/data  
    networks:
      - pg

  lobe-chat-database:
    image: lobehub/lobe-chat-database
    container_name: lobe-chat-database
    environment:
      # 基础变量
      OPENAI_PROXY_URL: ''
      OPENAI_MODEL_LIST: ''
      OPENAI_API_KEY: ''
      # 网站域名
      APP_URL: ""   # 使用ip+端口形式
      # DB 必须的环境变量
      KEY_VAULTS_SECRET: "jgwsK28dspyVQoIf8/M3IIHl1h6LYYceSYNXeLpy6uk="
      DATABASE_URL: "postgres://postgres:mysecretpassword@my-postgres:5432/postgres"
      # 身份验证
      NEXT_AUTH_SECRET: ""
      NEXT_AUTH_SSO_PROVIDERS: ""
      NEXTAUTH_URL: ""
      AUTH0_CLIENT_ID: ""
      AUTH0_CLIENT_SECRET: ""
      AUTH0_ISSUER: ""
      # 存储
      S3_ACCESS_KEY_ID: ""
      S3_SECRET_ACCESS_KEY: ""
      S3_ENDPOINT: ""
      S3_BUCKET: ""
      NEXT_PUBLIC_S3_DOMAIN: ""
    ports:
      - "3210:3210"
    networks:
      - pg
    depends_on:
      - postgres

networks:
  pg:
    driver: bridge

📝 补充信息

No response

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


🥰 Description of requirements

Provide a docker-compose.yml that deploys the server database version

🧐 Solution

version: '3.8'

services:
  postgres:
    image: pgvector/pgvector:pg16
    container_name: my-postgres
    environment:
      POSTGRES_PASSWORD: mysecretpassword
    ports:
      - "5432:5432"
    volumes:
      - ./pgdata:/var/lib/postgresql/data
    networks:
      - pg

  lobe-chat-database:
    image: lobehub/lobe-chat-database
    container_name: lobe-chat-database
    environment:
      #Basic variables
      OPENAI_PROXY_URL: ''
      OPENAI_MODEL_LIST: ''
      OPENAI_API_KEY: ''
      # Website domain name
      APP_URL: "" # Use ip+port format
      # DB required environment variables
      KEY_VAULTS_SECRET: "jgwsK28dspyVQoIf8/M3IIHl1h6LYYceSYNXeLpy6uk="
      DATABASE_URL: "postgres://postgres:mysecretpassword@my-postgres:5432/postgres"
      # Authentication
      NEXT_AUTH_SECRET: ""
      NEXT_AUTH_SSO_PROVIDERS: ""
      NEXTAUTH_URL: ""
      AUTH0_CLIENT_ID: ""
      AUTH0_CLIENT_SECRET: ""
      AUTH0_ISSUER: ""
      #storage
      S3_ACCESS_KEY_ID: ""
      S3_SECRET_ACCESS_KEY: ""
      S3_ENDPOINT: ""
      S3_BUCKET: ""
      NEXT_PUBLIC_S3_DOMAIN: ""
    ports:
      - "3210:3210"
    networks:
      - pg
    depends_on:
      -postgres

networks:
  pg:
    driver:bridge

📝 Supplementary information

No response

lobehubbot commented 2 months ago

👀 @370738206

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

zhangleijun111 commented 2 months ago
version: '3.8'

services:
  postgres:
    image: pgvector/pgvector:pg16
    container_name: my-postgres
    environment:
      POSTGRES_PASSWORD: mysecretpassword
    ports:
      - "5432:5432"
    volumes:
      - ./pgdata:/var/lib/postgresql/data  
    networks:
      - pg

  lobe-chat-database:
    image: lobehub/lobe-chat-database
    container_name: lobe-chat-database
    environment:
      # 基础变量
      OPENAI_PROXY_URL: ''
      OPENAI_MODEL_LIST: ''
      OPENAI_API_KEY: ''
      # 网站域名
      APP_URL: "" # 使用ip+端口形式
      # DB 必须的环境变量
      KEY_VAULTS_SECRET: "jgwsK28dspyVQoIf8/M3IIHl1h6LYYceSYNXeLpy6uk="
      DATABASE_URL: "postgres://postgres:mysecretpassword@my-postgres:5432/postgres"
      # 身份验证
      NEXT_AUTH_SECRET: ""
      NEXT_AUTH_SSO_PROVIDERS: ""
      NEXTAUTH_URL: ""
      AUTH0_CLIENT_ID: ""
      AUTH0_CLIENT_SECRET: ""
      AUTH0_ISSUER: ""
      # 存储
      S3_ACCESS_KEY_ID: ""
      S3_SECRET_ACCESS_KEY: ""
      S3_ENDPOINT: ""
      S3_BUCKET: ""
      NEXT_PUBLIC_S3_DOMAIN: ""
    ports:
      - "3210:3210"
    networks:
      - pg
    depends_on:
      - postgres

networks:
  pg:
    driver: bridge

你好我想问一下APP_URL、NEXT_PUBLIC_S3_DOMAIN、AUTH0_ISSUER、NEXTAUTH_URL这四个变量我如何配置能不能给一个教程呀

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


version: '3.8'

services:
postgres:
image: pgvector/pgvector:pg16
container_name: my-postgres
environment:
POSTGRES_PASSWORD: mysecretpassword
ports:
- "5432:5432"
volumes:
- ./pgdata:/var/lib/postgresql/data
networks:
-pg

lobe-chat-database:
image: lobehub/lobe-chat-database
container_name: lobe-chat-database
environment:
# Basic variables
OPENAI_PROXY_URL: ''
OPENAI_MODEL_LIST: ''
OPENAI_API_KEY: ''
# Website domain name
APP_URL: "" # Use ip+port format
# DB required environment variables
KEY_VAULTS_SECRET: "jgwsK28dspyVQoIf8/M3IIHl1h6LYYceSYNXeLpy6uk="
DATABASE_URL: "postgres://postgres:mysecretpassword@my-postgres:5432/postgres"
# Authentication
NEXT_AUTH_SECRET: ""
NEXT_AUTH_SSO_PROVIDERS: ""
NEXTAUTH_URL: ""
AUTH0_CLIENT_ID: ""
AUTH0_CLIENT_SECRET: ""
AUTH0_ISSUER: ""
# storage
S3_ACCESS_KEY_ID: ""
S3_SECRET_ACCESS_KEY: ""
S3_ENDPOINT: ""
S3_BUCKET: ""
NEXT_PUBLIC_S3_DOMAIN: ""
ports:
- "3210:3210"
networks:
-pg
depends_on:
- postgres

networks:
pg:
driver: bridge

Hello, I would like to ask if you can give me a tutorial on how to configure these four variables: APP_URL, NEXT_PUBLIC_S3_DOMAIN, AUTH0_ISSUER, and NEXTAUTH_URL.

oasis168 commented 2 months ago

感谢提供,请问可否把自建minio代码也放进去,不想依赖除自有服务器外的任何其他服务器

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Thanks for providing it. Could you please include the self-built minio code? I don’t want to rely on any other server except my own server.

zhangleijun111 commented 2 months ago
version: '3.8'

services:
  postgres:
    image: pgvector/pgvector:pg16
    container_name: my-postgres
    environment:
      POSTGRES_PASSWORD: mysecretpassword
    ports:
      - "5432:5432"
    volumes:
      - ./pgdata:/var/lib/postgresql/data  
    networks:
      - pg

  lobe-chat-database:
    image: lobehub/lobe-chat-database
    container_name: lobe-chat-database
    environment:
      # 基础变量
      OPENAI_PROXY_URL: ''
      OPENAI_MODEL_LIST: ''
      OPENAI_API_KEY: ''
      # 网站域名
      APP_URL: "" # 使用ip+端口形式
      # DB 必须的环境变量
      KEY_VAULTS_SECRET: "jgwsK28dspyVQoIf8/M3IIHl1h6LYYceSYNXeLpy6uk="
      DATABASE_URL: "postgres://postgres:mysecretpassword@my-postgres:5432/postgres"
      # 身份验证
      NEXT_AUTH_SECRET: ""
      NEXT_AUTH_SSO_PROVIDERS: ""
      NEXTAUTH_URL: ""
      AUTH0_CLIENT_ID: ""
      AUTH0_CLIENT_SECRET: ""
      AUTH0_ISSUER: ""
      # 存储
      S3_ACCESS_KEY_ID: ""
      S3_SECRET_ACCESS_KEY: ""
      S3_ENDPOINT: ""
      S3_BUCKET: ""
      NEXT_PUBLIC_S3_DOMAIN: ""
    ports:
      - "3210:3210"
    networks:
      - pg
    depends_on:
      - postgres

networks:
  pg:
    driver: bridge

你好我想问一下APP_URL、NEXT_PUBLIC_S3_DOMAIN、AUTH0_ISSUER、NEXTAUTH_URL这四个变量我如何配置能不能给一个教程呀

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


version: '3.8'

services:
postgres:
image: pgvector/pgvector:pg16
container_name: my-postgres
environment:
POSTGRES_PASSWORD: mysecretpassword
ports:
- "5432:5432"
volumes:
- ./pgdata:/var/lib/postgresql/data
networks:
-pg

lobe-chat-database:
image: lobehub/lobe-chat-database
container_name: lobe-chat-database
environment:
# Basic variables
OPENAI_PROXY_URL: ''
OPENAI_MODEL_LIST: ''
OPENAI_API_KEY: ''
# Website domain name
APP_URL: "" # Use ip+port format
# DB required environment variables
KEY_VAULTS_SECRET: "jgwsK28dspyVQoIf8/M3IIHl1h6LYYceSYNXeLpy6uk="
DATABASE_URL: "postgres://postgres:mysecretpassword@my-postgres:5432/postgres"
# Authentication
NEXT_AUTH_SECRET: ""
NEXT_AUTH_SSO_PROVIDERS: ""
NEXTAUTH_URL: ""
AUTH0_CLIENT_ID: ""
AUTH0_CLIENT_SECRET: ""
AUTH0_ISSUER: ""
# storage
S3_ACCESS_KEY_ID: ""
S3_SECRET_ACCESS_KEY: ""
S3_ENDPOINT: ""
S3_BUCKET: ""
NEXT_PUBLIC_S3_DOMAIN: ""
ports:
- "3210:3210"
networks:
-pg
depends_on:
- postgres

networks:
pg:
driver: bridge

Hello, I would like to ask if you can give me a tutorial on how to configure these four variables: APP_URL, NEXT_PUBLIC_S3_DOMAIN, AUTH0_ISSUER, and NEXTAUTH_URL.

zhangleijun111 commented 2 months ago
version: '3.8'

services:
  postgres:
    image: pgvector/pgvector:pg16
    container_name: my-postgres
    environment:
      POSTGRES_PASSWORD: mysecretpassword
    ports:
      - "5432:5432"
    volumes:
      - ./pgdata:/var/lib/postgresql/data  
    networks:
      - pg

  lobe-chat-database:
    image: lobehub/lobe-chat-database
    container_name: lobe-chat-database
    environment:
      # 基础变量
      OPENAI_PROXY_URL: ''
      OPENAI_MODEL_LIST: ''
      OPENAI_API_KEY: ''
      # 网站域名
      APP_URL: "" # 使用ip+端口形式
      # DB 必须的环境变量
      KEY_VAULTS_SECRET: "jgwsK28dspyVQoIf8/M3IIHl1h6LYYceSYNXeLpy6uk="
      DATABASE_URL: "postgres://postgres:mysecretpassword@my-postgres:5432/postgres"
      # 身份验证
      NEXT_AUTH_SECRET: ""
      NEXT_AUTH_SSO_PROVIDERS: ""
      NEXTAUTH_URL: ""
      AUTH0_CLIENT_ID: ""
      AUTH0_CLIENT_SECRET: ""
      AUTH0_ISSUER: ""
      # 存储
      S3_ACCESS_KEY_ID: ""
      S3_SECRET_ACCESS_KEY: ""
      S3_ENDPOINT: ""
      S3_BUCKET: ""
      NEXT_PUBLIC_S3_DOMAIN: ""
    ports:
      - "3210:3210"
    networks:
      - pg
    depends_on:
      - postgres

networks:
  pg:
    driver: bridge

你好我想问一下APP_URL、NEXT_PUBLIC_S3_DOMAIN、AUTH0_ISSUER、NEXTAUTH_URL这四个变量我如何配置能不能给一个教程呀

🥰 需求描述

提供一个部署服务端数据库版的docker-compose.yml

🧐 解决方案

version: '3.8'

services:
  postgres:
    image: pgvector/pgvector:pg16
    container_name: my-postgres
    environment:
      POSTGRES_PASSWORD: mysecretpassword
    ports:
      - "5432:5432"
    volumes:
      - ./pgdata:/var/lib/postgresql/data  
    networks:
      - pg

  lobe-chat-database:
    image: lobehub/lobe-chat-database
    container_name: lobe-chat-database
    environment:
      # 基础变量
      OPENAI_PROXY_URL: ''
      OPENAI_MODEL_LIST: ''
      OPENAI_API_KEY: ''
      # 网站域名
      APP_URL: "" # 使用ip+端口形式
      # DB 必须的环境变量
      KEY_VAULTS_SECRET: "jgwsK28dspyVQoIf8/M3IIHl1h6LYYceSYNXeLpy6uk="
      DATABASE_URL: "postgres://postgres:mysecretpassword@my-postgres:5432/postgres"
      # 身份验证
      NEXT_AUTH_SECRET: ""
      NEXT_AUTH_SSO_PROVIDERS: ""
      NEXTAUTH_URL: ""
      AUTH0_CLIENT_ID: ""
      AUTH0_CLIENT_SECRET: ""
      AUTH0_ISSUER: ""
      # 存储
      S3_ACCESS_KEY_ID: ""
      S3_SECRET_ACCESS_KEY: ""
      S3_ENDPOINT: ""
      S3_BUCKET: ""
      NEXT_PUBLIC_S3_DOMAIN: ""
    ports:
      - "3210:3210"
    networks:
      - pg
    depends_on:
      - postgres

networks:
  pg:
    driver: bridge

📝 补充信息

没有回应

其他的密钥我已通过教程配好,就差这四个URL有点疑问

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


version: '3.8'

services:
postgres:
image: pgvector/pgvector:pg16
container_name: my-postgres
environment:
POSTGRES_PASSWORD: mysecretpassword
ports:
- "5432:5432"
volumes:
- ./pgdata:/var/lib/postgresql/data
networks:
-pg

lobe-chat-database:
image: lobehub/lobe-chat-database
container_name: lobe-chat-database
environment:
# Basic variables
OPENAI_PROXY_URL: ''
OPENAI_MODEL_LIST: ''
OPENAI_API_KEY: ''
# Website domain name
APP_URL: "" # Use ip+port format
# DB required environment variables
KEY_VAULTS_SECRET: "jgwsK28dspyVQoIf8/M3IIHl1h6LYYceSYNXeLpy6uk="
DATABASE_URL: "postgres://postgres:mysecretpassword@my-postgres:5432/postgres"
# Authentication
NEXT_AUTH_SECRET: ""
NEXT_AUTH_SSO_PROVIDERS: ""
NEXTAUTH_URL: ""
AUTH0_CLIENT_ID: ""
AUTH0_CLIENT_SECRET: ""
AUTH0_ISSUER: ""
# storage
S3_ACCESS_KEY_ID: ""
S3_SECRET_ACCESS_KEY: ""
S3_ENDPOINT: ""
S3_BUCKET: ""
NEXT_PUBLIC_S3_DOMAIN: ""
ports:
- "3210:3210"
networks:
-pg
depends_on:
- postgres

networks:
pg:
driver: bridge

Hello, I would like to ask if you can give me a tutorial on how to configure these four variables: APP_URL, NEXT_PUBLIC_S3_DOMAIN, AUTH0_ISSUER, and NEXTAUTH_URL.

🥰 Description of requirements

Provide a docker-compose.yml that deploys the server database version

🧐 Solution

version: '3.8'

services:
postgres:
image: pgvector/pgvector:pg16
container_name: my-postgres
environment:
POSTGRES_PASSWORD: mysecretpassword
ports:
- "5432:5432"
volumes:
- ./pgdata:/var/lib/postgresql/data
networks:
-pg

lobe-chat-database:
image: lobehub/lobe-chat-database
container_name: lobe-chat-database
environment:
# Basic variables
OPENAI_PROXY_URL: ''
OPENAI_MODEL_LIST: ''
OPENAI_API_KEY: ''
# Website domain name
APP_URL: "" # Use ip+port format
# DB required environment variables
KEY_VAULTS_SECRET: "jgwsK28dspyVQoIf8/M3IIHl1h6LYYceSYNXeLpy6uk="
DATABASE_URL: "postgres://postgres:mysecretpassword@my-postgres:5432/postgres"
# Authentication
NEXT_AUTH_SECRET: ""
NEXT_AUTH_SSO_PROVIDERS: ""
NEXTAUTH_URL: ""
AUTH0_CLIENT_ID: ""
AUTH0_CLIENT_SECRET: ""
AUTH0_ISSUER: ""
# storage
S3_ACCESS_KEY_ID: ""
S3_SECRET_ACCESS_KEY: ""
S3_ENDPOINT: ""
S3_BUCKET: ""
NEXT_PUBLIC_S3_DOMAIN: ""
ports:
- "3210:3210"
networks:
-pg
depends_on:
- postgres

networks:
pg:
driver: bridge

📝 Supplementary information

No response

I have configured the other keys through the tutorial, but I have some doubts about these four URLs.

370738206 commented 2 months ago
version: '3.8'

services:
  postgres:
    image: pgvector/pgvector:pg16
    container_name: my-postgres
    environment:
      POSTGRES_PASSWORD: mysecretpassword
    ports:
      - "5432:5432"
    volumes:
      - ./pgdata:/var/lib/postgresql/data  
    networks:
      - pg

  lobe-chat-database:
    image: lobehub/lobe-chat-database
    container_name: lobe-chat-database
    environment:
      # 基础变量
      OPENAI_PROXY_URL: ''
      OPENAI_MODEL_LIST: ''
      OPENAI_API_KEY: ''
      # 网站域名
      APP_URL: ""   # 使用ip+端口形式
      # DB 必须的环境变量
      KEY_VAULTS_SECRET: "jgwsK28dspyVQoIf8/M3IIHl1h6LYYceSYNXeLpy6uk="
      DATABASE_URL: "postgres://postgres:mysecretpassword@my-postgres:5432/postgres"
      # 身份验证
      NEXT_AUTH_SECRET: ""
      NEXT_AUTH_SSO_PROVIDERS: ""
      NEXTAUTH_URL: ""
      AUTH0_CLIENT_ID: ""
      AUTH0_CLIENT_SECRET: ""
      AUTH0_ISSUER: ""
      # 存储
      S3_ACCESS_KEY_ID: ""
      S3_SECRET_ACCESS_KEY: ""
      S3_ENDPOINT: ""
      S3_BUCKET: ""
      NEXT_PUBLIC_S3_DOMAIN: ""
    ports:
      - "3210:3210"
    networks:
      - pg
    depends_on:
      - postgres

networks:
  pg:
    driver: bridge

你好我想问一下APP_URL、NEXT_PUBLIC_S3_DOMAIN、AUTH0_ISSUER、NEXTAUTH_URL这四个变量我如何配置能不能给一个教程呀

APP_URL

服务器域名+lobe-chat-datebase端口

NEXT_PUBLIC_S3_DOMAIN

也就是S3_PUBLIC_DOMAIN \ 官方文档在这 配置 Cloudflare R2 存储服务

具体查看cf的域 \ NEXT_PUBLIC_S3_DOMAIN

AUTH0_ISSUER、NEXTAUTH_URL

参考官方教程 身份验证服务

我用的是auth0,所以进一步参考 配置 Auth0 身份验证服务

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


version: '3.8'

services:
postgres:
image: pgvector/pgvector:pg16
container_name: my-postgres
environment:
POSTGRES_PASSWORD: mysecretpassword
ports:
- "5432:5432"
volumes:
- ./pgdata:/var/lib/postgresql/data
networks:
-pg

lobe-chat-database:
image: lobehub/lobe-chat-database
container_name: lobe-chat-database
environment:
#Basic variables
OPENAI_PROXY_URL: ''
OPENAI_MODEL_LIST: ''
OPENAI_API_KEY: ''
# Website domain name
APP_URL: "" # Use ip+port format
# DB required environment variables
KEY_VAULTS_SECRET: "jgwsK28dspyVQoIf8/M3IIHl1h6LYYceSYNXeLpy6uk="
DATABASE_URL: "postgres://postgres:mysecretpassword@my-postgres:5432/postgres"
# Authentication
NEXT_AUTH_SECRET: ""
NEXT_AUTH_SSO_PROVIDERS: ""
NEXTAUTH_URL: ""
AUTH0_CLIENT_ID: ""
AUTH0_CLIENT_SECRET: ""
AUTH0_ISSUER: ""
# Storage
S3_ACCESS_KEY_ID: ""
S3_SECRET_ACCESS_KEY: ""
S3_ENDPOINT: ""
S3_BUCKET: ""
NEXT_PUBLIC_S3_DOMAIN: ""
ports:
- "3210:3210"
networks:
- pg
depends_on:
- postgres

networks:
pg:
driver: bridge

Hello, I would like to ask if you can give me a tutorial on how to configure these four variables: APP_URL, NEXT_PUBLIC_S3_DOMAIN, AUTH0_ISSUER, and NEXTAUTH_URL.

APP_URL

Server domain name + lobe-chat-datebase port

NEXT_PUBLIC_S3_DOMAIN

That is S3_PUBLIC_DOMAIN \ The official documentation is here Configuring Cloudflare R2 storage service

Specifically check the domain of cf\ NEXT_PUBLIC_S3_DOMAIN

AUTH0_ISSUER, NEXTAUTH_URL

Refer to the official tutorial Authentication Service

I'm using auth0, so for further reference Configuring Auth0 authentication service

oasis168 commented 2 months ago

🥰 需求描述

提供一个部署服务端数据库版的docker-compose.yml

🧐 解决方案

version: '3.8'

services:
  postgres:
    image: pgvector/pgvector:pg16
    container_name: my-postgres
    environment:
      POSTGRES_PASSWORD: mysecretpassword
    ports:
      - "5432:5432"
    volumes:
      - ./pgdata:/var/lib/postgresql/data  
    networks:
      - pg

  lobe-chat-database:
    image: lobehub/lobe-chat-database
    container_name: lobe-chat-database
    environment:
      # 基础变量
      OPENAI_PROXY_URL: ''
      OPENAI_MODEL_LIST: ''
      OPENAI_API_KEY: ''
      # 网站域名
      APP_URL: "" # 使用ip+端口形式
      # DB 必须的环境变量
      KEY_VAULTS_SECRET: "jgwsK28dspyVQoIf8/M3IIHl1h6LYYceSYNXeLpy6uk="
      DATABASE_URL: "postgres://postgres:mysecretpassword@my-postgres:5432/postgres"
      # 身份验证
      NEXT_AUTH_SECRET: ""
      NEXT_AUTH_SSO_PROVIDERS: ""
      NEXTAUTH_URL: ""
      AUTH0_CLIENT_ID: ""
      AUTH0_CLIENT_SECRET: ""
      AUTH0_ISSUER: ""
      # 存储
      S3_ACCESS_KEY_ID: ""
      S3_SECRET_ACCESS_KEY: ""
      S3_ENDPOINT: ""
      S3_BUCKET: ""
      NEXT_PUBLIC_S3_DOMAIN: ""
    ports:
      - "3210:3210"
    networks:
      - pg
    depends_on:
      - postgres

networks:
  pg:
    driver: bridge

📝 补充信息

No response

感谢提供,请问可否把自建minio代码也放进去?不想依赖除自有服务器外的任何其他服务器

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


🥰 Description of requirements

Provide a docker-compose.yml that deploys the server database version

🧐 Solution

version: '3.8'

services:
postgres:
image: pgvector/pgvector:pg16
container_name: my-postgres
environment:
POSTGRES_PASSWORD: mysecretpassword
ports:
- "5432:5432"
volumes:
- ./pgdata:/var/lib/postgresql/data
networks:
-pg

lobe-chat-database:
image: lobehub/lobe-chat-database
container_name: lobe-chat-database
environment:
# Basic variables
OPENAI_PROXY_URL: ''
OPENAI_MODEL_LIST: ''
OPENAI_API_KEY: ''
# Website domain name
APP_URL: "" # Use ip+port format
# DB required environment variables
KEY_VAULTS_SECRET: "jgwsK28dspyVQoIf8/M3IIHl1h6LYYceSYNXeLpy6uk="
DATABASE_URL: "postgres://postgres:mysecretpassword@my-postgres:5432/postgres"
# Authentication
NEXT_AUTH_SECRET: ""
NEXT_AUTH_SSO_PROVIDERS: ""
NEXTAUTH_URL: ""
AUTH0_CLIENT_ID: ""
AUTH0_CLIENT_SECRET: ""
AUTH0_ISSUER: ""
# storage
S3_ACCESS_KEY_ID: ""
S3_SECRET_ACCESS_KEY: ""
S3_ENDPOINT: ""
S3_BUCKET: ""
NEXT_PUBLIC_S3_DOMAIN: ""
ports:
- "3210:3210"
networks:
-pg
depends_on:
- postgres

networks:
pg:
driver: bridge

📝 Supplementary information

No response

Thanks for providing it. Can you include the self-built minio code? Don’t want to rely on any other server other than your own

zhangleijun111 commented 2 months ago

APP_URL

APP_URL 内网部署可以使用localhost:3210嘛

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


APP_URL

APP_URL Intranet deployment can use localhost:3210

zhangleijun111 commented 2 months ago

🥰 需求描述

提供一个部署服务端数据库版的docker-compose.yml

🧐 解决方案

version: '3.8'

services:
  postgres:
    image: pgvector/pgvector:pg16
    container_name: my-postgres
    environment:
      POSTGRES_PASSWORD: mysecretpassword
    ports:
      - "5432:5432"
    volumes:
      - ./pgdata:/var/lib/postgresql/data  
    networks:
      - pg

  lobe-chat-database:
    image: lobehub/lobe-chat-database
    container_name: lobe-chat-database
    environment:
      # 基础变量
      OPENAI_PROXY_URL: ''
      OPENAI_MODEL_LIST: ''
      OPENAI_API_KEY: ''
      # 网站域名
      APP_URL: "" # 使用ip+端口形式
      # DB 必须的环境变量
      KEY_VAULTS_SECRET: "jgwsK28dspyVQoIf8/M3IIHl1h6LYYceSYNXeLpy6uk="
      DATABASE_URL: "postgres://postgres:mysecretpassword@my-postgres:5432/postgres"
      # 身份验证
      NEXT_AUTH_SECRET: ""
      NEXT_AUTH_SSO_PROVIDERS: ""
      NEXTAUTH_URL: ""
      AUTH0_CLIENT_ID: ""
      AUTH0_CLIENT_SECRET: ""
      AUTH0_ISSUER: ""
      # 存储
      S3_ACCESS_KEY_ID: ""
      S3_SECRET_ACCESS_KEY: ""
      S3_ENDPOINT: ""
      S3_BUCKET: ""
      NEXT_PUBLIC_S3_DOMAIN: ""
    ports:
      - "3210:3210"
    networks:
      - pg
    depends_on:
      - postgres

networks:
  pg:
    driver: bridge

📝 补充信息

没有回应

我找着部署还是报这个错误 ![Uploading 0f5d4547d8c9d67e1f640346d6dd7c0.png…]()

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


🥰 Description of requirements

Provide a docker-compose.yml that deploys the server database version

🧐 Solution

version: '3.8'

services:
postgres:
image: pgvector/pgvector:pg16
container_name: my-postgres
environment:
POSTGRES_PASSWORD: mysecretpassword
ports:
- "5432:5432"
volumes:
- ./pgdata:/var/lib/postgresql/data
networks:
-pg

lobe-chat-database:
image: lobehub/lobe-chat-database
container_name: lobe-chat-database
environment:
# Basic variables
OPENAI_PROXY_URL: ''
OPENAI_MODEL_LIST: ''
OPENAI_API_KEY: ''
# Website domain name
APP_URL: "" # Use ip+port format
# DB required environment variables
KEY_VAULTS_SECRET: "jgwsK28dspyVQoIf8/M3IIHl1h6LYYceSYNXeLpy6uk="
DATABASE_URL: "postgres://postgres:mysecretpassword@my-postgres:5432/postgres"
# Authentication
NEXT_AUTH_SECRET: ""
NEXT_AUTH_SSO_PROVIDERS: ""
NEXTAUTH_URL: ""
AUTH0_CLIENT_ID: ""
AUTH0_CLIENT_SECRET: ""
AUTH0_ISSUER: ""
# storage
S3_ACCESS_KEY_ID: ""
S3_SECRET_ACCESS_KEY: ""
S3_ENDPOINT: ""
S3_BUCKET: ""
NEXT_PUBLIC_S3_DOMAIN: ""
ports:
- "3210:3210"
networks:
-pg
depends_on:
- postgres

networks:
pg:
driver: bridge

📝 Supplementary information

No response

I tried to deploy and still got this error. ![Uploading 0f5d4547d8c9d67e1f640346d6dd7c0.png…]()

370738206 commented 2 months ago

@zhangleijun111 看不到你上传的图片

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@zhangleijun111 I can’t see the picture you uploaded

370738206 commented 2 months ago

APP_URL

APP_URL 内网部署可以使用localhost:3210嘛

我测试过不去,上传的文件在分块的时候会有问题

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


APP_URL

APP_URL Intranet deployment can use localhost:3210

I can't pass the test. There will be problems when uploading files into chunks.

370738206 commented 2 months ago

https://github.com/lobehub/lobe-chat/issues/3574#issue-2482731909 看到了你的问题,同问你有登录吗?

lobehubbot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


https://github.com/lobehub/lobe-chat/issues/3574#issue-2482731909 I saw your question and asked if you are logged in?

lobehubbot commented 2 months ago

✅ @370738206

This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。