diff --git a/docs/docs/ar/get-started/installation/create-nocobase-app.mdx b/docs/docs/ar/get-started/installation/create-nocobase-app.mdx index d32b0dc8cf2..2b45cc48fb5 100644 --- a/docs/docs/ar/get-started/installation/create-nocobase-app.mdx +++ b/docs/docs/ar/get-started/installation/create-nocobase-app.mdx @@ -24,7 +24,55 @@ $ yarn config set registry https://registry.npmmirror.com/ - + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d postgres \ + -e DB_HOST=localhost \ + -e DB_PORT=5432 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mysql \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mariadb \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + + + @@ -72,7 +120,7 @@ npx create-nocobase-app@beta my-nocobase-app -d mariadb \ - + @@ -120,54 +168,6 @@ npx create-nocobase-app@alpha my-nocobase-app -d mariadb \ - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d postgres \ - -e DB_HOST=localhost \ - -e DB_PORT=5432 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mysql \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mariadb \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - - :::warning ملاحظات حول متغيرات البيئة diff --git a/docs/docs/ar/get-started/installation/docker.mdx b/docs/docs/ar/get-started/installation/docker.mdx index 9b6d371dcea..a6afb848832 100644 --- a/docs/docs/ar/get-started/installation/docker.mdx +++ b/docs/docs/ar/get-started/installation/docker.mdx @@ -41,7 +41,189 @@ vi docker-compose.yml - + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - postgres + environment: + # مفتاح التطبيق، يُستخدم لإنشاء رموز المستخدم (tokens) وغيرها + # إذا تم تغيير APP_KEY، ستصبح الرموز القديمة غير صالحة + # يمكن أن يكون أي سلسلة عشوائية، وتأكد من عدم تسريبها + - APP_KEY=your-secret-key + # نوع قاعدة البيانات، يدعم postgres, mysql, mariadb + - DB_DIALECT=postgres + # مضيف قاعدة البيانات، يمكن استبداله بعنوان IP لخادم قاعدة بيانات موجود + - DB_HOST=postgres + # Database port + - DB_PORT=5432 + # اسم قاعدة البيانات + - DB_DATABASE=nocobase + # مستخدم قاعدة البيانات + - DB_USER=nocobase + # كلمة مرور قاعدة البيانات + - DB_PASSWORD=nocobase + # المنطقة الزمنية + - TZ=Asia/Shanghai + + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # إذا كنت تستخدم خدمة قاعدة بيانات موجودة، يمكنك تخطي تشغيل postgres + postgres: + image: postgres:16 + restart: always + command: postgres -c wal_level=logical + environment: + POSTGRES_USER: nocobase + POSTGRES_DB: nocobase + POSTGRES_PASSWORD: nocobase + volumes: + - ./storage/db/postgres:/var/lib/postgresql/data + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mysql + environment: + # مفتاح التطبيق، يُستخدم لإنشاء رموز المستخدم (tokens) وغيرها + # إذا تم تغيير APP_KEY، ستصبح الرموز القديمة غير صالحة + # يمكن أن يكون أي سلسلة عشوائية، وتأكد من عدم تسريبها + - APP_KEY=your-secret-key + # نوع قاعدة البيانات، يدعم postgres, mysql, mariadb + - DB_DIALECT=mysql + # مضيف قاعدة البيانات، يمكن استبداله بعنوان IP لخادم قاعدة بيانات موجود + - DB_HOST=mysql + # Database port + - DB_PORT=3306 + # اسم قاعدة البيانات + - DB_DATABASE=nocobase + # مستخدم قاعدة البيانات + - DB_USER=root + # كلمة مرور قاعدة البيانات + - DB_PASSWORD=nocobase + # هل يتم تحويل أسماء الجداول والحقول إلى نمط snake case + - DB_UNDERSCORED=true + # المنطقة الزمنية + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # إذا كنت تستخدم خدمة قاعدة بيانات موجودة، يمكنك تخطي تشغيل mysql + mysql: + image: mysql:8 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mysql:/var/lib/mysql + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mariadb + environment: + # مفتاح التطبيق، يُستخدم لإنشاء رموز المستخدم (tokens) وغيرها + # إذا تم تغيير APP_KEY، ستصبح الرموز القديمة غير صالحة + # يمكن أن يكون أي سلسلة عشوائية، وتأكد من عدم تسريبها + - APP_KEY=your-secret-key + # نوع قاعدة البيانات، يدعم postgres, mysql, mariadb + - DB_DIALECT=mariadb + # مضيف قاعدة البيانات، يمكن استبداله بعنوان IP لخادم قاعدة بيانات موجود + - DB_HOST=mariadb + # Database port + - DB_PORT=3306 + # اسم قاعدة البيانات + - DB_DATABASE=nocobase + # مستخدم قاعدة البيانات + - DB_USER=root + # كلمة مرور قاعدة البيانات + - DB_PASSWORD=nocobase + # هل يتم تحويل أسماء الجداول والحقول إلى نمط snake case + - DB_UNDERSCORED=true + # المنطقة الزمنية + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # إذا كنت تستخدم خدمة قاعدة بيانات موجودة، يمكنك تخطي تشغيل mariadb + mariadb: + image: mariadb:11 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mariadb:/var/lib/mysql + networks: + - nocobase +``` + + + + + + + @@ -223,7 +405,7 @@ services: - + @@ -405,188 +587,6 @@ services: - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - postgres - environment: - # مفتاح التطبيق، يُستخدم لإنشاء رموز المستخدم (tokens) وغيرها - # إذا تم تغيير APP_KEY، ستصبح الرموز القديمة غير صالحة - # يمكن أن يكون أي سلسلة عشوائية، وتأكد من عدم تسريبها - - APP_KEY=your-secret-key - # نوع قاعدة البيانات، يدعم postgres, mysql, mariadb - - DB_DIALECT=postgres - # مضيف قاعدة البيانات، يمكن استبداله بعنوان IP لخادم قاعدة بيانات موجود - - DB_HOST=postgres - # Database port - - DB_PORT=5432 - # اسم قاعدة البيانات - - DB_DATABASE=nocobase - # مستخدم قاعدة البيانات - - DB_USER=nocobase - # كلمة مرور قاعدة البيانات - - DB_PASSWORD=nocobase - # المنطقة الزمنية - - TZ=Asia/Shanghai - - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # إذا كنت تستخدم خدمة قاعدة بيانات موجودة، يمكنك تخطي تشغيل postgres - postgres: - image: postgres:16 - restart: always - command: postgres -c wal_level=logical - environment: - POSTGRES_USER: nocobase - POSTGRES_DB: nocobase - POSTGRES_PASSWORD: nocobase - volumes: - - ./storage/db/postgres:/var/lib/postgresql/data - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mysql - environment: - # مفتاح التطبيق، يُستخدم لإنشاء رموز المستخدم (tokens) وغيرها - # إذا تم تغيير APP_KEY، ستصبح الرموز القديمة غير صالحة - # يمكن أن يكون أي سلسلة عشوائية، وتأكد من عدم تسريبها - - APP_KEY=your-secret-key - # نوع قاعدة البيانات، يدعم postgres, mysql, mariadb - - DB_DIALECT=mysql - # مضيف قاعدة البيانات، يمكن استبداله بعنوان IP لخادم قاعدة بيانات موجود - - DB_HOST=mysql - # Database port - - DB_PORT=3306 - # اسم قاعدة البيانات - - DB_DATABASE=nocobase - # مستخدم قاعدة البيانات - - DB_USER=root - # كلمة مرور قاعدة البيانات - - DB_PASSWORD=nocobase - # هل يتم تحويل أسماء الجداول والحقول إلى نمط snake case - - DB_UNDERSCORED=true - # المنطقة الزمنية - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # إذا كنت تستخدم خدمة قاعدة بيانات موجودة، يمكنك تخطي تشغيل mysql - mysql: - image: mysql:8 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mysql:/var/lib/mysql - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mariadb - environment: - # مفتاح التطبيق، يُستخدم لإنشاء رموز المستخدم (tokens) وغيرها - # إذا تم تغيير APP_KEY، ستصبح الرموز القديمة غير صالحة - # يمكن أن يكون أي سلسلة عشوائية، وتأكد من عدم تسريبها - - APP_KEY=your-secret-key - # نوع قاعدة البيانات، يدعم postgres, mysql, mariadb - - DB_DIALECT=mariadb - # مضيف قاعدة البيانات، يمكن استبداله بعنوان IP لخادم قاعدة بيانات موجود - - DB_HOST=mariadb - # Database port - - DB_PORT=3306 - # اسم قاعدة البيانات - - DB_DATABASE=nocobase - # مستخدم قاعدة البيانات - - DB_USER=root - # كلمة مرور قاعدة البيانات - - DB_PASSWORD=nocobase - # هل يتم تحويل أسماء الجداول والحقول إلى نمط snake case - - DB_UNDERSCORED=true - # المنطقة الزمنية - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # إذا كنت تستخدم خدمة قاعدة بيانات موجودة، يمكنك تخطي تشغيل mariadb - mariadb: - image: mariadb:11 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mariadb:/var/lib/mysql - networks: - - nocobase -``` - - - - - - ## 3. تثبيت NocoBase وتشغيله diff --git a/docs/docs/ar/get-started/installation/git.mdx b/docs/docs/ar/get-started/installation/git.mdx index a7f45383a00..b2c732655a5 100644 --- a/docs/docs/ar/get-started/installation/git.mdx +++ b/docs/docs/ar/get-started/installation/git.mdx @@ -23,26 +23,26 @@ $ yarn config set registry https://registry.npmmirror.com/ اختر إصدار NocoBase ([مقارنة الإصدارات](../quickstart.md)) ونفّذ الأمر المناسب. - + + +```bash +git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase +``` + + + ```bash git clone https://github.com/nocobase/nocobase.git -b next --depth=1 my-nocobase ``` - + ```bash git clone https://github.com/nocobase/nocobase.git -b develop --depth=1 my-nocobase ``` - - - -```bash -git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase -``` - diff --git a/docs/docs/cn/get-started/installation/create-nocobase-app.mdx b/docs/docs/cn/get-started/installation/create-nocobase-app.mdx index 61b9d880efe..fd73f4d8ac9 100644 --- a/docs/docs/cn/get-started/installation/create-nocobase-app.mdx +++ b/docs/docs/cn/get-started/installation/create-nocobase-app.mdx @@ -19,7 +19,55 @@ $ yarn config set registry https://registry.npmmirror.com/ - + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d postgres \ + -e DB_HOST=localhost \ + -e DB_PORT=5432 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mysql \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mariadb \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + + + @@ -67,7 +115,7 @@ npx create-nocobase-app@beta my-nocobase-app -d mariadb \ - + @@ -115,54 +163,6 @@ npx create-nocobase-app@alpha my-nocobase-app -d mariadb \ - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d postgres \ - -e DB_HOST=localhost \ - -e DB_PORT=5432 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mysql \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mariadb \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - - :::warning 环境变量说明 diff --git a/docs/docs/cn/get-started/installation/docker.mdx b/docs/docs/cn/get-started/installation/docker.mdx index 6b4981ac3c6..d46f09a1562 100644 --- a/docs/docs/cn/get-started/installation/docker.mdx +++ b/docs/docs/cn/get-started/installation/docker.mdx @@ -37,7 +37,189 @@ vi docker-compose.yml - + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: registry.cn-shanghai.aliyuncs.com/nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - postgres + environment: + # 应用的密钥,用于生成用户 token 等 + # 如果 APP_KEY 修改了,旧的 token 也会随之失效 + # 可以是任意随机字符串,并确保不对外泄露 + - APP_KEY=your-secret-key + # 数据库类型,支持 postgres, mysql, mariadb + - DB_DIALECT=postgres + # 数据库主机,可以替换为已有的数据库服务器 IP + - DB_HOST=postgres + # Database port + - DB_PORT=5432 + # 数据库名 + - DB_DATABASE=nocobase + # 数据库用户 + - DB_USER=nocobase + # 数据库密码 + - DB_PASSWORD=nocobase + # 时区 + - TZ=Asia/Shanghai + + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # 如果使用已有数据库服务,可以不启动 postgres + postgres: + image: registry.cn-shanghai.aliyuncs.com/nocobase/postgres:16 + restart: always + command: postgres -c wal_level=logical + environment: + POSTGRES_USER: nocobase + POSTGRES_DB: nocobase + POSTGRES_PASSWORD: nocobase + volumes: + - ./storage/db/postgres:/var/lib/postgresql/data + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: registry.cn-shanghai.aliyuncs.com/nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mysql + environment: + # 应用的密钥,用于生成用户 token 等 + # 如果 APP_KEY 修改了,旧的 token 也会随之失效 + # 可以是任意随机字符串,并确保不对外泄露 + - APP_KEY=your-secret-key + # 数据库类型,支持 postgres, mysql, mariadb + - DB_DIALECT=mysql + # 数据库主机,可以替换为已有的数据库服务器 IP + - DB_HOST=mysql + # Database port + - DB_PORT=3306 + # 数据库名 + - DB_DATABASE=nocobase + # 数据库用户 + - DB_USER=root + # 数据库密码 + - DB_PASSWORD=nocobase + # 数据库表名、字段名是否转为 snake case 风格 + - DB_UNDERSCORED=true + # 时区 + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # 如果使用已有数据库服务,可以不启动 mysql + mysql: + image: registry.cn-shanghai.aliyuncs.com/nocobase/mysql:8 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mysql:/var/lib/mysql + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: registry.cn-shanghai.aliyuncs.com/nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mariadb + environment: + # 应用的密钥,用于生成用户 token 等 + # 如果 APP_KEY 修改了,旧的 token 也会随之失效 + # 可以是任意随机字符串,并确保不对外泄露 + - APP_KEY=your-secret-key + # 数据库类型,支持 postgres, mysql, mariadb + - DB_DIALECT=mariadb + # 数据库主机,可以替换为已有的数据库服务器 IP + - DB_HOST=mariadb + # Database port + - DB_PORT=3306 + # 数据库名 + - DB_DATABASE=nocobase + # 数据库用户 + - DB_USER=root + # 数据库密码 + - DB_PASSWORD=nocobase + # 数据库表名、字段名是否转为 snake case 风格 + - DB_UNDERSCORED=true + # 时区 + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # 如果使用已有数据库服务,可以不启动 mariadb + mariadb: + image: registry.cn-shanghai.aliyuncs.com/nocobase/mariadb:11 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mariadb:/var/lib/mysql + networks: + - nocobase +``` + + + + + + + @@ -219,7 +401,7 @@ services: - + @@ -401,188 +583,6 @@ services: - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: registry.cn-shanghai.aliyuncs.com/nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - postgres - environment: - # 应用的密钥,用于生成用户 token 等 - # 如果 APP_KEY 修改了,旧的 token 也会随之失效 - # 可以是任意随机字符串,并确保不对外泄露 - - APP_KEY=your-secret-key - # 数据库类型,支持 postgres, mysql, mariadb - - DB_DIALECT=postgres - # 数据库主机,可以替换为已有的数据库服务器 IP - - DB_HOST=postgres - # Database port - - DB_PORT=5432 - # 数据库名 - - DB_DATABASE=nocobase - # 数据库用户 - - DB_USER=nocobase - # 数据库密码 - - DB_PASSWORD=nocobase - # 时区 - - TZ=Asia/Shanghai - - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # 如果使用已有数据库服务,可以不启动 postgres - postgres: - image: registry.cn-shanghai.aliyuncs.com/nocobase/postgres:16 - restart: always - command: postgres -c wal_level=logical - environment: - POSTGRES_USER: nocobase - POSTGRES_DB: nocobase - POSTGRES_PASSWORD: nocobase - volumes: - - ./storage/db/postgres:/var/lib/postgresql/data - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: registry.cn-shanghai.aliyuncs.com/nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mysql - environment: - # 应用的密钥,用于生成用户 token 等 - # 如果 APP_KEY 修改了,旧的 token 也会随之失效 - # 可以是任意随机字符串,并确保不对外泄露 - - APP_KEY=your-secret-key - # 数据库类型,支持 postgres, mysql, mariadb - - DB_DIALECT=mysql - # 数据库主机,可以替换为已有的数据库服务器 IP - - DB_HOST=mysql - # Database port - - DB_PORT=3306 - # 数据库名 - - DB_DATABASE=nocobase - # 数据库用户 - - DB_USER=root - # 数据库密码 - - DB_PASSWORD=nocobase - # 数据库表名、字段名是否转为 snake case 风格 - - DB_UNDERSCORED=true - # 时区 - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # 如果使用已有数据库服务,可以不启动 mysql - mysql: - image: registry.cn-shanghai.aliyuncs.com/nocobase/mysql:8 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mysql:/var/lib/mysql - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: registry.cn-shanghai.aliyuncs.com/nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mariadb - environment: - # 应用的密钥,用于生成用户 token 等 - # 如果 APP_KEY 修改了,旧的 token 也会随之失效 - # 可以是任意随机字符串,并确保不对外泄露 - - APP_KEY=your-secret-key - # 数据库类型,支持 postgres, mysql, mariadb - - DB_DIALECT=mariadb - # 数据库主机,可以替换为已有的数据库服务器 IP - - DB_HOST=mariadb - # Database port - - DB_PORT=3306 - # 数据库名 - - DB_DATABASE=nocobase - # 数据库用户 - - DB_USER=root - # 数据库密码 - - DB_PASSWORD=nocobase - # 数据库表名、字段名是否转为 snake case 风格 - - DB_UNDERSCORED=true - # 时区 - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # 如果使用已有数据库服务,可以不启动 mariadb - mariadb: - image: registry.cn-shanghai.aliyuncs.com/nocobase/mariadb:11 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mariadb:/var/lib/mysql - networks: - - nocobase -``` - - - - - - ## 3. 安装并启动 NocoBase diff --git a/docs/docs/cn/get-started/installation/git.mdx b/docs/docs/cn/get-started/installation/git.mdx index 9bed2cd8ac4..f5d83e05928 100644 --- a/docs/docs/cn/get-started/installation/git.mdx +++ b/docs/docs/cn/get-started/installation/git.mdx @@ -18,26 +18,26 @@ $ yarn config set registry https://registry.npmmirror.com/ 选择 NocoBase 版本([版本对比](../quickstart.md)),执行相应的命令。 - + + +```bash +git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase +``` + + + ```bash git clone https://github.com/nocobase/nocobase.git -b next --depth=1 my-nocobase ``` - + ```bash git clone https://github.com/nocobase/nocobase.git -b develop --depth=1 my-nocobase ``` - - - -```bash -git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase -``` - diff --git a/docs/docs/cs/get-started/installation/create-nocobase-app.mdx b/docs/docs/cs/get-started/installation/create-nocobase-app.mdx index f4119f0c868..2edb1ad9692 100644 --- a/docs/docs/cs/get-started/installation/create-nocobase-app.mdx +++ b/docs/docs/cs/get-started/installation/create-nocobase-app.mdx @@ -18,7 +18,55 @@ Vyberte verzi NocoBase ([Porovnání verzí](../quickstart.md)) a typ databáze - + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d postgres \ + -e DB_HOST=localhost \ + -e DB_PORT=5432 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mysql \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mariadb \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + + + @@ -66,7 +114,7 @@ npx create-nocobase-app@beta my-nocobase-app -d mariadb \ - + @@ -114,54 +162,6 @@ npx create-nocobase-app@alpha my-nocobase-app -d mariadb \ - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d postgres \ - -e DB_HOST=localhost \ - -e DB_PORT=5432 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mysql \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mariadb \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - - :::warning Vysvětlení proměnných prostředí diff --git a/docs/docs/cs/get-started/installation/docker.mdx b/docs/docs/cs/get-started/installation/docker.mdx index a0e67cfba22..10b9e621426 100644 --- a/docs/docs/cs/get-started/installation/docker.mdx +++ b/docs/docs/cs/get-started/installation/docker.mdx @@ -42,7 +42,189 @@ Vyberte verzi NocoBase ([Porovnání verzí](../quickstart.md)) a typ databáze, - + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - postgres + environment: + # Klíč aplikace, slouží k generování uživatelských tokenů atd. + # Pokud se APP_KEY změní, staré tokeny se stanou neplatnými. + # Může to být libovolný náhodný řetězec, ujistěte se, že nebude vyzrazen. + - APP_KEY=your-secret-key + # Typ databáze, podporuje postgres, mysql, mariadb. + - DB_DIALECT=postgres + # Hostitel databáze, lze nahradit IP adresou existujícího databázového serveru. + - DB_HOST=postgres + # Port databáze + - DB_PORT=5432 + # Název databáze + - DB_DATABASE=nocobase + # Uživatel databáze + - DB_USER=nocobase + # Heslo databáze + - DB_PASSWORD=nocobase + # Časové pásmo + - TZ=Asia/Shanghai + + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Pokud používáte existující databázovou službu, můžete postgres nespouštět. + postgres: + image: postgres:16 + restart: always + command: postgres -c wal_level=logical + environment: + POSTGRES_USER: nocobase + POSTGRES_DB: nocobase + POSTGRES_PASSWORD: nocobase + volumes: + - ./storage/db/postgres:/var/lib/postgresql/data + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mysql + environment: + # Klíč aplikace, slouží k generování uživatelských tokenů atd. + # Pokud se APP_KEY změní, staré tokeny se stanou neplatnými. + # Může to být libovolný náhodný řetězec, ujistěte se, že nebude vyzrazen. + - APP_KEY=your-secret-key + # Typ databáze, podporuje postgres, mysql, mariadb. + - DB_DIALECT=mysql + # Hostitel databáze, lze nahradit IP adresou existujícího databázového serveru. + - DB_HOST=mysql + # Port databáze + - DB_PORT=3306 + # Název databáze + - DB_DATABASE=nocobase + # Uživatel databáze + - DB_USER=root + # Heslo databáze + - DB_PASSWORD=nocobase + # Zda se názvy tabulek a polí databáze převedou na styl snake_case. + - DB_UNDERSCORED=true + # Časové pásmo + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Pokud používáte existující databázovou službu, můžete mysql nespouštět. + mysql: + image: mysql:8 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mysql:/var/lib/mysql + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mariadb + environment: + # Klíč aplikace, slouží k generování uživatelských tokenů atd. + # Pokud se APP_KEY změní, staré tokeny se stanou neplatnými. + # Může to být libovolný náhodný řetězec, ujistěte se, že nebude vyzrazen. + - APP_KEY=your-secret-key + # Typ databáze, podporuje postgres, mysql, mariadb. + - DB_DIALECT=mariadb + # Hostitel databáze, lze nahradit IP adresou existujícího databázového serveru. + - DB_HOST=mariadb + # Port databáze + - DB_PORT=3306 + # Název databáze + - DB_DATABASE=nocobase + # Uživatel databáze + - DB_USER=root + # Heslo databáze + - DB_PASSWORD=nocobase + # Zda se názvy tabulek a polí databáze převedou na styl snake_case. + - DB_UNDERSCORED=true + # Časové pásmo + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Pokud používáte existující databázovou službu, můžete mariadb nespouštět. + mariadb: + image: mariadb:11 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mariadb:/var/lib/mysql + networks: + - nocobase +``` + + + + + + + @@ -224,7 +406,7 @@ services: - + @@ -406,188 +588,6 @@ services: - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - postgres - environment: - # Klíč aplikace, slouží k generování uživatelských tokenů atd. - # Pokud se APP_KEY změní, staré tokeny se stanou neplatnými. - # Může to být libovolný náhodný řetězec, ujistěte se, že nebude vyzrazen. - - APP_KEY=your-secret-key - # Typ databáze, podporuje postgres, mysql, mariadb. - - DB_DIALECT=postgres - # Hostitel databáze, lze nahradit IP adresou existujícího databázového serveru. - - DB_HOST=postgres - # Port databáze - - DB_PORT=5432 - # Název databáze - - DB_DATABASE=nocobase - # Uživatel databáze - - DB_USER=nocobase - # Heslo databáze - - DB_PASSWORD=nocobase - # Časové pásmo - - TZ=Asia/Shanghai - - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Pokud používáte existující databázovou službu, můžete postgres nespouštět. - postgres: - image: postgres:16 - restart: always - command: postgres -c wal_level=logical - environment: - POSTGRES_USER: nocobase - POSTGRES_DB: nocobase - POSTGRES_PASSWORD: nocobase - volumes: - - ./storage/db/postgres:/var/lib/postgresql/data - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mysql - environment: - # Klíč aplikace, slouží k generování uživatelských tokenů atd. - # Pokud se APP_KEY změní, staré tokeny se stanou neplatnými. - # Může to být libovolný náhodný řetězec, ujistěte se, že nebude vyzrazen. - - APP_KEY=your-secret-key - # Typ databáze, podporuje postgres, mysql, mariadb. - - DB_DIALECT=mysql - # Hostitel databáze, lze nahradit IP adresou existujícího databázového serveru. - - DB_HOST=mysql - # Port databáze - - DB_PORT=3306 - # Název databáze - - DB_DATABASE=nocobase - # Uživatel databáze - - DB_USER=root - # Heslo databáze - - DB_PASSWORD=nocobase - # Zda se názvy tabulek a polí databáze převedou na styl snake_case. - - DB_UNDERSCORED=true - # Časové pásmo - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Pokud používáte existující databázovou službu, můžete mysql nespouštět. - mysql: - image: mysql:8 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mysql:/var/lib/mysql - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mariadb - environment: - # Klíč aplikace, slouží k generování uživatelských tokenů atd. - # Pokud se APP_KEY změní, staré tokeny se stanou neplatnými. - # Může to být libovolný náhodný řetězec, ujistěte se, že nebude vyzrazen. - - APP_KEY=your-secret-key - # Typ databáze, podporuje postgres, mysql, mariadb. - - DB_DIALECT=mariadb - # Hostitel databáze, lze nahradit IP adresou existujícího databázového serveru. - - DB_HOST=mariadb - # Port databáze - - DB_PORT=3306 - # Název databáze - - DB_DATABASE=nocobase - # Uživatel databáze - - DB_USER=root - # Heslo databáze - - DB_PASSWORD=nocobase - # Zda se názvy tabulek a polí databáze převedou na styl snake_case. - - DB_UNDERSCORED=true - # Časové pásmo - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Pokud používáte existující databázovou službu, můžete mariadb nespouštět. - mariadb: - image: mariadb:11 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mariadb:/var/lib/mysql - networks: - - nocobase -``` - - - - - - ## 3. Instalace a spuštění NocoBase diff --git a/docs/docs/cs/get-started/installation/git.mdx b/docs/docs/cs/get-started/installation/git.mdx index f9d2d64cd40..3de8d7f467b 100644 --- a/docs/docs/cs/get-started/installation/git.mdx +++ b/docs/docs/cs/get-started/installation/git.mdx @@ -17,26 +17,26 @@ Tento dokument byl přeložen umělou inteligencí. V případě nepřesností s Vyberte verzi NocoBase ([Porovnání verzí](../quickstart.md)) a spusťte odpovídající příkaz. - + + +```bash +git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase +``` + + + ```bash git clone https://github.com/nocobase/nocobase.git -b next --depth=1 my-nocobase ``` - + ```bash git clone https://github.com/nocobase/nocobase.git -b develop --depth=1 my-nocobase ``` - - - -```bash -git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase -``` - diff --git a/docs/docs/de/get-started/installation/create-nocobase-app.mdx b/docs/docs/de/get-started/installation/create-nocobase-app.mdx index d38c49efe56..860ebf76732 100644 --- a/docs/docs/de/get-started/installation/create-nocobase-app.mdx +++ b/docs/docs/de/get-started/installation/create-nocobase-app.mdx @@ -24,7 +24,55 @@ Wählen Sie die NocoBase-Version ([Versionsvergleich](../quickstart.md)) und den - + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d postgres \ + -e DB_HOST=localhost \ + -e DB_PORT=5432 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mysql \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mariadb \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + + + @@ -72,7 +120,7 @@ npx create-nocobase-app@beta my-nocobase-app -d mariadb \ - + @@ -120,54 +168,6 @@ npx create-nocobase-app@alpha my-nocobase-app -d mariadb \ - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d postgres \ - -e DB_HOST=localhost \ - -e DB_PORT=5432 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mysql \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mariadb \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - - :::warning Umgebungsvariablen diff --git a/docs/docs/de/get-started/installation/docker.mdx b/docs/docs/de/get-started/installation/docker.mdx index ffa7ab155bc..f81a6a2a5fa 100644 --- a/docs/docs/de/get-started/installation/docker.mdx +++ b/docs/docs/de/get-started/installation/docker.mdx @@ -42,7 +42,189 @@ Wählen Sie eine NocoBase-Version ([Versionsvergleich](../quickstart.md)) und de - + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - postgres + environment: + # Anwendungs-Schlüssel, wird zur Generierung von Benutzer-Tokens usw. verwendet. + # Wenn APP_KEY geändert wird, werden alte Tokens ungültig. + # Kann eine beliebige zufällige Zeichenkette sein; stellen Sie sicher, dass sie nicht nach außen gelangt. + - APP_KEY=your-secret-key + # Datenbanktyp, unterstützt postgres, mysql, mariadb + - DB_DIALECT=postgres + # Datenbank-Host, kann durch die IP eines bestehenden Datenbankservers ersetzt werden. + - DB_HOST=postgres + # Datenbank-Port + - DB_PORT=5432 + # Datenbankname + - DB_DATABASE=nocobase + # Datenbank-Benutzer + - DB_USER=nocobase + # Datenbank-Passwort + - DB_PASSWORD=nocobase + # Zeitzone + - TZ=Etc/UTC + + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Wenn Sie einen bestehenden Datenbankdienst verwenden, müssen Sie postgres nicht starten. + postgres: + image: postgres:16 + restart: always + command: postgres -c wal_level=logical + environment: + POSTGRES_USER: nocobase + POSTGRES_DB: nocobase + POSTGRES_PASSWORD: nocobase + volumes: + - ./storage/db/postgres:/var/lib/postgresql/data + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mysql + environment: + # Anwendungs-Schlüssel, wird zur Generierung von Benutzer-Tokens usw. verwendet. + # Wenn APP_KEY geändert wird, werden alte Tokens ungültig. + # Kann eine beliebige zufällige Zeichenkette sein; stellen Sie sicher, dass sie nicht nach außen gelangt. + - APP_KEY=your-secret-key + # Datenbanktyp, unterstützt postgres, mysql, mariadb + - DB_DIALECT=mysql + # Datenbank-Host, kann durch die IP eines bestehenden Datenbankservers ersetzt werden. + - DB_HOST=mysql + # Datenbank-Port + - DB_PORT=3306 + # Datenbankname + - DB_DATABASE=nocobase + # Datenbank-Benutzer + - DB_USER=root + # Datenbank-Passwort + - DB_PASSWORD=nocobase + # Sollen Tabellen- und Feldnamen in Snake-Case-Schreibweise konvertiert werden? + - DB_UNDERSCORED=true + # Zeitzone + - TZ=Etc/UTC + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Wenn Sie einen bestehenden Datenbankdienst verwenden, müssen Sie mysql nicht starten. + mysql: + image: mysql:8 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mysql:/var/lib/mysql + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mariadb + environment: + # Anwendungs-Schlüssel, wird zur Generierung von Benutzer-Tokens usw. verwendet. + # Wenn APP_KEY geändert wird, werden alte Tokens ungültig. + # Kann eine beliebige zufällige Zeichenkette sein; stellen Sie sicher, dass sie nicht nach außen gelangt. + - APP_KEY=your-secret-key + # Datenbanktyp, unterstützt postgres, mysql, mariadb + - DB_DIALECT=mariadb + # Datenbank-Host, kann durch die IP eines bestehenden Datenbankservers ersetzt werden. + - DB_HOST=mariadb + # Datenbank-Port + - DB_PORT=3306 + # Datenbankname + - DB_DATABASE=nocobase + # Datenbank-Benutzer + - DB_USER=root + # Datenbank-Passwort + - DB_PASSWORD=nocobase + # Sollen Tabellen- und Feldnamen in Snake-Case-Schreibweise konvertiert werden? + - DB_UNDERSCORED=true + # Zeitzone + - TZ=Etc/UTC + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Wenn Sie einen bestehenden Datenbankdienst verwenden, müssen Sie mariadb nicht starten. + mariadb: + image: mariadb:11 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mariadb:/var/lib/mysql + networks: + - nocobase +``` + + + + + + + @@ -224,7 +406,7 @@ services: - + @@ -406,188 +588,6 @@ services: - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - postgres - environment: - # Anwendungs-Schlüssel, wird zur Generierung von Benutzer-Tokens usw. verwendet. - # Wenn APP_KEY geändert wird, werden alte Tokens ungültig. - # Kann eine beliebige zufällige Zeichenkette sein; stellen Sie sicher, dass sie nicht nach außen gelangt. - - APP_KEY=your-secret-key - # Datenbanktyp, unterstützt postgres, mysql, mariadb - - DB_DIALECT=postgres - # Datenbank-Host, kann durch die IP eines bestehenden Datenbankservers ersetzt werden. - - DB_HOST=postgres - # Datenbank-Port - - DB_PORT=5432 - # Datenbankname - - DB_DATABASE=nocobase - # Datenbank-Benutzer - - DB_USER=nocobase - # Datenbank-Passwort - - DB_PASSWORD=nocobase - # Zeitzone - - TZ=Etc/UTC - - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Wenn Sie einen bestehenden Datenbankdienst verwenden, müssen Sie postgres nicht starten. - postgres: - image: postgres:16 - restart: always - command: postgres -c wal_level=logical - environment: - POSTGRES_USER: nocobase - POSTGRES_DB: nocobase - POSTGRES_PASSWORD: nocobase - volumes: - - ./storage/db/postgres:/var/lib/postgresql/data - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mysql - environment: - # Anwendungs-Schlüssel, wird zur Generierung von Benutzer-Tokens usw. verwendet. - # Wenn APP_KEY geändert wird, werden alte Tokens ungültig. - # Kann eine beliebige zufällige Zeichenkette sein; stellen Sie sicher, dass sie nicht nach außen gelangt. - - APP_KEY=your-secret-key - # Datenbanktyp, unterstützt postgres, mysql, mariadb - - DB_DIALECT=mysql - # Datenbank-Host, kann durch die IP eines bestehenden Datenbankservers ersetzt werden. - - DB_HOST=mysql - # Datenbank-Port - - DB_PORT=3306 - # Datenbankname - - DB_DATABASE=nocobase - # Datenbank-Benutzer - - DB_USER=root - # Datenbank-Passwort - - DB_PASSWORD=nocobase - # Sollen Tabellen- und Feldnamen in Snake-Case-Schreibweise konvertiert werden? - - DB_UNDERSCORED=true - # Zeitzone - - TZ=Etc/UTC - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Wenn Sie einen bestehenden Datenbankdienst verwenden, müssen Sie mysql nicht starten. - mysql: - image: mysql:8 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mysql:/var/lib/mysql - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mariadb - environment: - # Anwendungs-Schlüssel, wird zur Generierung von Benutzer-Tokens usw. verwendet. - # Wenn APP_KEY geändert wird, werden alte Tokens ungültig. - # Kann eine beliebige zufällige Zeichenkette sein; stellen Sie sicher, dass sie nicht nach außen gelangt. - - APP_KEY=your-secret-key - # Datenbanktyp, unterstützt postgres, mysql, mariadb - - DB_DIALECT=mariadb - # Datenbank-Host, kann durch die IP eines bestehenden Datenbankservers ersetzt werden. - - DB_HOST=mariadb - # Datenbank-Port - - DB_PORT=3306 - # Datenbankname - - DB_DATABASE=nocobase - # Datenbank-Benutzer - - DB_USER=root - # Datenbank-Passwort - - DB_PASSWORD=nocobase - # Sollen Tabellen- und Feldnamen in Snake-Case-Schreibweise konvertiert werden? - - DB_UNDERSCORED=true - # Zeitzone - - TZ=Etc/UTC - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Wenn Sie einen bestehenden Datenbankdienst verwenden, müssen Sie mariadb nicht starten. - mariadb: - image: mariadb:11 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mariadb:/var/lib/mysql - networks: - - nocobase -``` - - - - - - diff --git a/docs/docs/de/get-started/installation/git.mdx b/docs/docs/de/get-started/installation/git.mdx index 1f460f2ce2f..904b492a0b2 100644 --- a/docs/docs/de/get-started/installation/git.mdx +++ b/docs/docs/de/get-started/installation/git.mdx @@ -23,26 +23,26 @@ $ yarn config set registry https://registry.npmmirror.com/ Wählen Sie eine NocoBase-Version ([Versionsvergleich](../quickstart.md)) und führen Sie den entsprechenden Befehl aus. - + + +```bash +git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase +``` + + + ```bash git clone https://github.com/nocobase/nocobase.git -b next --depth=1 my-nocobase ``` - + ```bash git clone https://github.com/nocobase/nocobase.git -b develop --depth=1 my-nocobase ``` - - - -```bash -git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase -``` - diff --git a/docs/docs/en/get-started/installation/create-nocobase-app.mdx b/docs/docs/en/get-started/installation/create-nocobase-app.mdx index 7f1b7928942..955948b8470 100644 --- a/docs/docs/en/get-started/installation/create-nocobase-app.mdx +++ b/docs/docs/en/get-started/installation/create-nocobase-app.mdx @@ -13,7 +13,55 @@ Select the NocoBase version ([Version Comparison](../quickstart.md)) and databas - + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d postgres \ + -e DB_HOST=localhost \ + -e DB_PORT=5432 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mysql \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mariadb \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + + + @@ -61,7 +109,7 @@ npx create-nocobase-app@beta my-nocobase-app -d mariadb \ - + @@ -109,54 +157,6 @@ npx create-nocobase-app@alpha my-nocobase-app -d mariadb \ - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d postgres \ - -e DB_HOST=localhost \ - -e DB_PORT=5432 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mysql \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mariadb \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - - :::warning Environment Variables diff --git a/docs/docs/en/get-started/installation/docker.mdx b/docs/docs/en/get-started/installation/docker.mdx index c5a71dba7f4..f920a8d094a 100644 --- a/docs/docs/en/get-started/installation/docker.mdx +++ b/docs/docs/en/get-started/installation/docker.mdx @@ -36,7 +36,189 @@ Choose a NocoBase version ([Version Comparison](../quickstart.md)) and database - + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - postgres + environment: + # Application key, used to generate user tokens, etc. + # If APP_KEY is changed, old tokens will become invalid + # Can be any random string, and ensure it is not leaked + - APP_KEY=your-secret-key + # Database type, supports postgres, mysql, mariadb + - DB_DIALECT=postgres + # Database host, can be replaced with an existing database server IP + - DB_HOST=postgres + # Database port + - DB_PORT=5432 + # Database name + - DB_DATABASE=nocobase + # Database user + - DB_USER=nocobase + # Database password + - DB_PASSWORD=nocobase + # Timezone, please change it to your local timezone, e.g., America/New_York + - TZ=Etc/UTC + + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # If you use an existing database service, you can skip starting postgres + postgres: + image: postgres:16 + restart: always + command: postgres -c wal_level=logical + environment: + POSTGRES_USER: nocobase + POSTGRES_DB: nocobase + POSTGRES_PASSWORD: nocobase + volumes: + - ./storage/db/postgres:/var/lib/postgresql/data + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mysql + environment: + # Application key, used to generate user tokens, etc. + # If APP_KEY is changed, old tokens will become invalid + # Can be any random string, and ensure it is not leaked + - APP_KEY=your-secret-key + # Database type, supports postgres, mysql, mariadb + - DB_DIALECT=mysql + # Database host, can be replaced with an existing database server IP + - DB_HOST=mysql + # Database port + - DB_PORT=3306 + # Database name + - DB_DATABASE=nocobase + # Database user + - DB_USER=root + # Database password + - DB_PASSWORD=nocobase + # Whether to convert table and field names to snake case + - DB_UNDERSCORED=true + # Timezone, please change it to your local timezone, e.g., America/New_York + - TZ=Etc/UTC + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # If you use an existing database service, you can skip starting mysql + mysql: + image: mysql:8 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mysql:/var/lib/mysql + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mariadb + environment: + # Application key, used to generate user tokens, etc. + # If APP_KEY is changed, old tokens will become invalid + # Can be any random string, and ensure it is not leaked + - APP_KEY=your-secret-key + # Database type, supports postgres, mysql, mariadb + - DB_DIALECT=mariadb + # Database host, can be replaced with an existing database server IP + - DB_HOST=mariadb + # Database port + - DB_PORT=3306 + # Database name + - DB_DATABASE=nocobase + # Database user + - DB_USER=root + # Database password + - DB_PASSWORD=nocobase + # Whether to convert table and field names to snake case + - DB_UNDERSCORED=true + # Timezone, please change it to your local timezone, e.g., America/New_York + - TZ=Etc/UTC + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # If you use an existing database service, you can skip starting mariadb + mariadb: + image: mariadb:11 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mariadb:/var/lib/mysql + networks: + - nocobase +``` + + + + + + + @@ -218,7 +400,7 @@ services: - + @@ -400,188 +582,6 @@ services: - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - postgres - environment: - # Application key, used to generate user tokens, etc. - # If APP_KEY is changed, old tokens will become invalid - # Can be any random string, and ensure it is not leaked - - APP_KEY=your-secret-key - # Database type, supports postgres, mysql, mariadb - - DB_DIALECT=postgres - # Database host, can be replaced with an existing database server IP - - DB_HOST=postgres - # Database port - - DB_PORT=5432 - # Database name - - DB_DATABASE=nocobase - # Database user - - DB_USER=nocobase - # Database password - - DB_PASSWORD=nocobase - # Timezone, please change it to your local timezone, e.g., America/New_York - - TZ=Etc/UTC - - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # If you use an existing database service, you can skip starting postgres - postgres: - image: postgres:16 - restart: always - command: postgres -c wal_level=logical - environment: - POSTGRES_USER: nocobase - POSTGRES_DB: nocobase - POSTGRES_PASSWORD: nocobase - volumes: - - ./storage/db/postgres:/var/lib/postgresql/data - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mysql - environment: - # Application key, used to generate user tokens, etc. - # If APP_KEY is changed, old tokens will become invalid - # Can be any random string, and ensure it is not leaked - - APP_KEY=your-secret-key - # Database type, supports postgres, mysql, mariadb - - DB_DIALECT=mysql - # Database host, can be replaced with an existing database server IP - - DB_HOST=mysql - # Database port - - DB_PORT=3306 - # Database name - - DB_DATABASE=nocobase - # Database user - - DB_USER=root - # Database password - - DB_PASSWORD=nocobase - # Whether to convert table and field names to snake case - - DB_UNDERSCORED=true - # Timezone, please change it to your local timezone, e.g., America/New_York - - TZ=Etc/UTC - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # If you use an existing database service, you can skip starting mysql - mysql: - image: mysql:8 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mysql:/var/lib/mysql - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mariadb - environment: - # Application key, used to generate user tokens, etc. - # If APP_KEY is changed, old tokens will become invalid - # Can be any random string, and ensure it is not leaked - - APP_KEY=your-secret-key - # Database type, supports postgres, mysql, mariadb - - DB_DIALECT=mariadb - # Database host, can be replaced with an existing database server IP - - DB_HOST=mariadb - # Database port - - DB_PORT=3306 - # Database name - - DB_DATABASE=nocobase - # Database user - - DB_USER=root - # Database password - - DB_PASSWORD=nocobase - # Whether to convert table and field names to snake case - - DB_UNDERSCORED=true - # Timezone, please change it to your local timezone, e.g., America/New_York - - TZ=Etc/UTC - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # If you use an existing database service, you can skip starting mariadb - mariadb: - image: mariadb:11 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mariadb:/var/lib/mysql - networks: - - nocobase -``` - - - - - - diff --git a/docs/docs/en/get-started/installation/git.mdx b/docs/docs/en/get-started/installation/git.mdx index 4f962840afa..e1cbbe9af1c 100644 --- a/docs/docs/en/get-started/installation/git.mdx +++ b/docs/docs/en/get-started/installation/git.mdx @@ -12,26 +12,26 @@ Choose a NocoBase version ([Version Comparison](../quickstart.md)) and run the corresponding command. - + + +```bash +git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase +``` + + + ```bash git clone https://github.com/nocobase/nocobase.git -b next --depth=1 my-nocobase ``` - + ```bash git clone https://github.com/nocobase/nocobase.git -b develop --depth=1 my-nocobase ``` - - - -```bash -git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase -``` - diff --git a/docs/docs/es/get-started/installation/create-nocobase-app.mdx b/docs/docs/es/get-started/installation/create-nocobase-app.mdx index e2aad2f13b0..4cda7ef541e 100644 --- a/docs/docs/es/get-started/installation/create-nocobase-app.mdx +++ b/docs/docs/es/get-started/installation/create-nocobase-app.mdx @@ -24,7 +24,55 @@ Seleccione la versión de NocoBase ([Comparación de versiones](../quickstart.md - + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d postgres \ + -e DB_HOST=localhost \ + -e DB_PORT=5432 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mysql \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mariadb \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + + + @@ -72,7 +120,7 @@ npx create-nocobase-app@beta my-nocobase-app -d mariadb \ - + @@ -120,54 +168,6 @@ npx create-nocobase-app@alpha my-nocobase-app -d mariadb \ - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d postgres \ - -e DB_HOST=localhost \ - -e DB_PORT=5432 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mysql \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mariadb \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - - :::warning Variables de entorno diff --git a/docs/docs/es/get-started/installation/docker.mdx b/docs/docs/es/get-started/installation/docker.mdx index 2d8fd77a342..c3dd078d116 100644 --- a/docs/docs/es/get-started/installation/docker.mdx +++ b/docs/docs/es/get-started/installation/docker.mdx @@ -42,7 +42,189 @@ Elija una versión de NocoBase ([Comparación de versiones](../quickstart.md)) y - + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - postgres + environment: + # Clave de la aplicación, utilizada para generar tokens de usuario, etc. + # Si se modifica APP_KEY, los tokens antiguos dejarán de ser válidos. + # Puede ser cualquier cadena aleatoria y debe asegurarse de que no se filtre. + - APP_KEY=your-secret-key + # Tipo de base de datos, compatible con postgres, mysql, mariadb. + - DB_DIALECT=postgres + # Host de la base de datos, puede reemplazarse por la IP de un servidor de base de datos existente. + - DB_HOST=postgres + # Puerto de la base de datos + - DB_PORT=5432 + # Nombre de la base de datos + - DB_DATABASE=nocobase + # Usuario de la base de datos + - DB_USER=nocobase + # Contraseña de la base de datos + - DB_PASSWORD=nocobase + # Zona horaria + - TZ=Asia/Shanghai + + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Si utiliza un servicio de base de datos existente, puede omitir el inicio de postgres. + postgres: + image: postgres:16 + restart: always + command: postgres -c wal_level=logical + environment: + POSTGRES_USER: nocobase + POSTGRES_DB: nocobase + POSTGRES_PASSWORD: nocobase + volumes: + - ./storage/db/postgres:/var/lib/postgresql/data + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mysql + environment: + # Clave de la aplicación, utilizada para generar tokens de usuario, etc. + # Si se modifica APP_KEY, los tokens antiguos dejarán de ser válidos. + # Puede ser cualquier cadena aleatoria y debe asegurarse de que no se filtre. + - APP_KEY=your-secret-key + # Tipo de base de datos, compatible con postgres, mysql, mariadb. + - DB_DIALECT=mysql + # Host de la base de datos, puede reemplazarse por la IP de un servidor de base de datos existente. + - DB_HOST=mysql + # Puerto de la base de datos + - DB_PORT=3306 + # Nombre de la base de datos + - DB_DATABASE=nocobase + # Usuario de la base de datos + - DB_USER=root + # Contraseña de la base de datos + - DB_PASSWORD=nocobase + # Indica si los nombres de tablas y campos de la base de datos se convierten a formato snake_case. + - DB_UNDERSCORED=true + # Zona horaria + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Si utiliza un servicio de base de datos existente, puede omitir el inicio de mysql. + mysql: + image: mysql:8 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mysql:/var/lib/mysql + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mariadb + environment: + # Clave de la aplicación, utilizada para generar tokens de usuario, etc. + # Si se modifica APP_KEY, los tokens antiguos dejarán de ser válidos. + # Puede ser cualquier cadena aleatoria y debe asegurarse de que no se filtre. + - APP_KEY=your-secret-key + # Tipo de base de datos, compatible con postgres, mysql, mariadb. + - DB_DIALECT=mariadb + # Host de la base de datos, puede reemplazarse por la IP de un servidor de base de datos existente. + - DB_HOST=mariadb + # Puerto de la base de datos + - DB_PORT=3306 + # Nombre de la base de datos + - DB_DATABASE=nocobase + # Usuario de la base de datos + - DB_USER=root + # Contraseña de la base de datos + - DB_PASSWORD=nocobase + # Indica si los nombres de tablas y campos de la base de datos se convierten a formato snake_case. + - DB_UNDERSCORED=true + # Zona horaria + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Si utiliza un servicio de base de datos existente, puede omitir el inicio de mariadb. + mariadb: + image: mariadb:11 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mariadb:/var/lib/mysql + networks: + - nocobase +``` + + + + + + + @@ -224,7 +406,7 @@ services: - + @@ -406,188 +588,6 @@ services: - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - postgres - environment: - # Clave de la aplicación, utilizada para generar tokens de usuario, etc. - # Si se modifica APP_KEY, los tokens antiguos dejarán de ser válidos. - # Puede ser cualquier cadena aleatoria y debe asegurarse de que no se filtre. - - APP_KEY=your-secret-key - # Tipo de base de datos, compatible con postgres, mysql, mariadb. - - DB_DIALECT=postgres - # Host de la base de datos, puede reemplazarse por la IP de un servidor de base de datos existente. - - DB_HOST=postgres - # Puerto de la base de datos - - DB_PORT=5432 - # Nombre de la base de datos - - DB_DATABASE=nocobase - # Usuario de la base de datos - - DB_USER=nocobase - # Contraseña de la base de datos - - DB_PASSWORD=nocobase - # Zona horaria - - TZ=Asia/Shanghai - - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Si utiliza un servicio de base de datos existente, puede omitir el inicio de postgres. - postgres: - image: postgres:16 - restart: always - command: postgres -c wal_level=logical - environment: - POSTGRES_USER: nocobase - POSTGRES_DB: nocobase - POSTGRES_PASSWORD: nocobase - volumes: - - ./storage/db/postgres:/var/lib/postgresql/data - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mysql - environment: - # Clave de la aplicación, utilizada para generar tokens de usuario, etc. - # Si se modifica APP_KEY, los tokens antiguos dejarán de ser válidos. - # Puede ser cualquier cadena aleatoria y debe asegurarse de que no se filtre. - - APP_KEY=your-secret-key - # Tipo de base de datos, compatible con postgres, mysql, mariadb. - - DB_DIALECT=mysql - # Host de la base de datos, puede reemplazarse por la IP de un servidor de base de datos existente. - - DB_HOST=mysql - # Puerto de la base de datos - - DB_PORT=3306 - # Nombre de la base de datos - - DB_DATABASE=nocobase - # Usuario de la base de datos - - DB_USER=root - # Contraseña de la base de datos - - DB_PASSWORD=nocobase - # Indica si los nombres de tablas y campos de la base de datos se convierten a formato snake_case. - - DB_UNDERSCORED=true - # Zona horaria - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Si utiliza un servicio de base de datos existente, puede omitir el inicio de mysql. - mysql: - image: mysql:8 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mysql:/var/lib/mysql - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mariadb - environment: - # Clave de la aplicación, utilizada para generar tokens de usuario, etc. - # Si se modifica APP_KEY, los tokens antiguos dejarán de ser válidos. - # Puede ser cualquier cadena aleatoria y debe asegurarse de que no se filtre. - - APP_KEY=your-secret-key - # Tipo de base de datos, compatible con postgres, mysql, mariadb. - - DB_DIALECT=mariadb - # Host de la base de datos, puede reemplazarse por la IP de un servidor de base de datos existente. - - DB_HOST=mariadb - # Puerto de la base de datos - - DB_PORT=3306 - # Nombre de la base de datos - - DB_DATABASE=nocobase - # Usuario de la base de datos - - DB_USER=root - # Contraseña de la base de datos - - DB_PASSWORD=nocobase - # Indica si los nombres de tablas y campos de la base de datos se convierten a formato snake_case. - - DB_UNDERSCORED=true - # Zona horaria - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Si utiliza un servicio de base de datos existente, puede omitir el inicio de mariadb. - mariadb: - image: mariadb:11 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mariadb:/var/lib/mysql - networks: - - nocobase -``` - - - - - - diff --git a/docs/docs/es/get-started/installation/git.mdx b/docs/docs/es/get-started/installation/git.mdx index 32834809626..50e0bc1eb41 100644 --- a/docs/docs/es/get-started/installation/git.mdx +++ b/docs/docs/es/get-started/installation/git.mdx @@ -23,26 +23,26 @@ $ yarn config set registry https://registry.npmmirror.com/ Elija una versión de NocoBase ([Comparación de versiones](../quickstart.md)) y ejecute el comando correspondiente. - + + +```bash +git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase +``` + + + ```bash git clone https://github.com/nocobase/nocobase.git -b next --depth=1 my-nocobase ``` - + ```bash git clone https://github.com/nocobase/nocobase.git -b develop --depth=1 my-nocobase ``` - - - -```bash -git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase -``` - diff --git a/docs/docs/fr/get-started/installation/create-nocobase-app.mdx b/docs/docs/fr/get-started/installation/create-nocobase-app.mdx index 7771d4b403a..e19c2aec11f 100644 --- a/docs/docs/fr/get-started/installation/create-nocobase-app.mdx +++ b/docs/docs/fr/get-started/installation/create-nocobase-app.mdx @@ -24,7 +24,55 @@ Sélectionnez la version de NocoBase ([Comparaison des versions](../quickstart.m - + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d postgres \ + -e DB_HOST=localhost \ + -e DB_PORT=5432 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mysql \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mariadb \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + + + @@ -72,7 +120,7 @@ npx create-nocobase-app@beta my-nocobase-app -d mariadb \ - + @@ -120,54 +168,6 @@ npx create-nocobase-app@alpha my-nocobase-app -d mariadb \ - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d postgres \ - -e DB_HOST=localhost \ - -e DB_PORT=5432 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mysql \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mariadb \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - - :::warning Variables d'environnement diff --git a/docs/docs/fr/get-started/installation/docker.mdx b/docs/docs/fr/get-started/installation/docker.mdx index a0d0777d0cf..444a5088da6 100644 --- a/docs/docs/fr/get-started/installation/docker.mdx +++ b/docs/docs/fr/get-started/installation/docker.mdx @@ -42,7 +42,189 @@ Choisissez une version de NocoBase ([Comparaison des versions](../quickstart.md) - + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - postgres + environment: + # Clé de l'application, utilisée pour générer les jetons utilisateur, etc. + # Si APP_KEY est modifiée, les anciens jetons deviendront invalides. + # Il peut s'agir de n'importe quelle chaîne de caractères aléatoire ; assurez-vous qu'elle ne soit pas divulguée. + - APP_KEY=your-secret-key + # Type de base de données, supporte postgres, mysql, mariadb + - DB_DIALECT=postgres + # Hôte de la base de données, peut être remplacé par l'IP d'un serveur de base de données existant + - DB_HOST=postgres + # Port de la base de données + - DB_PORT=5432 + # Nom de la base de données + - DB_DATABASE=nocobase + # Utilisateur de la base de données + - DB_USER=nocobase + # Mot de passe de la base de données + - DB_PASSWORD=nocobase + # Fuseau horaire + - TZ=Asia/Shanghai # Ou votre fuseau horaire local, par exemple Europe/Paris + + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Si vous utilisez un service de base de données existant, vous pouvez ne pas démarrer postgres. + postgres: + image: postgres:16 + restart: always + command: postgres -c wal_level=logical + environment: + POSTGRES_USER: nocobase + POSTGRES_DB: nocobase + POSTGRES_PASSWORD: nocobase + volumes: + - ./storage/db/postgres:/var/lib/postgresql/data + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mysql + environment: + # Clé de l'application, utilisée pour générer les jetons utilisateur, etc. + # Si APP_KEY est modifiée, les anciens jetons deviendront invalides. + # Il peut s'agir de n'importe quelle chaîne de caractères aléatoire ; assurez-vous qu'elle ne soit pas divulguée. + - APP_KEY=your-secret-key + # Type de base de données, supporte postgres, mysql, mariadb + - DB_DIALECT=mysql + # Hôte de la base de données, peut être remplacé par l'IP d'un serveur de base de données existant + - DB_HOST=mysql + # Port de la base de données + - DB_PORT=3306 + # Nom de la base de données + - DB_DATABASE=nocobase + # Utilisateur de la base de données + - DB_USER=root + # Mot de passe de la base de données + - DB_PASSWORD=nocobase + # Indique si les noms de tables et de champs doivent être convertis au format snake_case. + - DB_UNDERSCORED=true + # Fuseau horaire + - TZ=Asia/Shanghai # Ou votre fuseau horaire local, par exemple Europe/Paris + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Si vous utilisez un service de base de données existant, vous pouvez ne pas démarrer mysql. + mysql: + image: mysql:8 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mysql:/var/lib/mysql + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mariadb + environment: + # Clé de l'application, utilisée pour générer les jetons utilisateur, etc. + # Si APP_KEY est modifiée, les anciens jetons deviendront invalides. + # Il peut s'agir de n'importe quelle chaîne de caractères aléatoire ; assurez-vous qu'elle ne soit pas divulguée. + - APP_KEY=your-secret-key + # Type de base de données, supporte postgres, mysql, mariadb + - DB_DIALECT=mariadb + # Hôte de la base de données, peut être remplacé par l'IP d'un serveur de base de données existant + - DB_HOST=mariadb + # Port de la base de données + - DB_PORT=3306 + # Nom de la base de données + - DB_DATABASE=nocobase + # Utilisateur de la base de données + - DB_USER=root + # Mot de passe de la base de données + - DB_PASSWORD=nocobase + # Indique si les noms de tables et de champs doivent être convertis au format snake_case. + - DB_UNDERSCORED=true + # Fuseau horaire + - TZ=Asia/Shanghai # Ou votre fuseau horaire local, par exemple Europe/Paris + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Si vous utilisez un service de base de données existant, vous pouvez ne pas démarrer mariadb. + mariadb: + image: mariadb:11 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mariadb:/var/lib/mysql + networks: + - nocobase +``` + + + + + + + @@ -224,7 +406,7 @@ services: - + @@ -406,188 +588,6 @@ services: - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - postgres - environment: - # Clé de l'application, utilisée pour générer les jetons utilisateur, etc. - # Si APP_KEY est modifiée, les anciens jetons deviendront invalides. - # Il peut s'agir de n'importe quelle chaîne de caractères aléatoire ; assurez-vous qu'elle ne soit pas divulguée. - - APP_KEY=your-secret-key - # Type de base de données, supporte postgres, mysql, mariadb - - DB_DIALECT=postgres - # Hôte de la base de données, peut être remplacé par l'IP d'un serveur de base de données existant - - DB_HOST=postgres - # Port de la base de données - - DB_PORT=5432 - # Nom de la base de données - - DB_DATABASE=nocobase - # Utilisateur de la base de données - - DB_USER=nocobase - # Mot de passe de la base de données - - DB_PASSWORD=nocobase - # Fuseau horaire - - TZ=Asia/Shanghai # Ou votre fuseau horaire local, par exemple Europe/Paris - - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Si vous utilisez un service de base de données existant, vous pouvez ne pas démarrer postgres. - postgres: - image: postgres:16 - restart: always - command: postgres -c wal_level=logical - environment: - POSTGRES_USER: nocobase - POSTGRES_DB: nocobase - POSTGRES_PASSWORD: nocobase - volumes: - - ./storage/db/postgres:/var/lib/postgresql/data - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mysql - environment: - # Clé de l'application, utilisée pour générer les jetons utilisateur, etc. - # Si APP_KEY est modifiée, les anciens jetons deviendront invalides. - # Il peut s'agir de n'importe quelle chaîne de caractères aléatoire ; assurez-vous qu'elle ne soit pas divulguée. - - APP_KEY=your-secret-key - # Type de base de données, supporte postgres, mysql, mariadb - - DB_DIALECT=mysql - # Hôte de la base de données, peut être remplacé par l'IP d'un serveur de base de données existant - - DB_HOST=mysql - # Port de la base de données - - DB_PORT=3306 - # Nom de la base de données - - DB_DATABASE=nocobase - # Utilisateur de la base de données - - DB_USER=root - # Mot de passe de la base de données - - DB_PASSWORD=nocobase - # Indique si les noms de tables et de champs doivent être convertis au format snake_case. - - DB_UNDERSCORED=true - # Fuseau horaire - - TZ=Asia/Shanghai # Ou votre fuseau horaire local, par exemple Europe/Paris - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Si vous utilisez un service de base de données existant, vous pouvez ne pas démarrer mysql. - mysql: - image: mysql:8 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mysql:/var/lib/mysql - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mariadb - environment: - # Clé de l'application, utilisée pour générer les jetons utilisateur, etc. - # Si APP_KEY est modifiée, les anciens jetons deviendront invalides. - # Il peut s'agir de n'importe quelle chaîne de caractères aléatoire ; assurez-vous qu'elle ne soit pas divulguée. - - APP_KEY=your-secret-key - # Type de base de données, supporte postgres, mysql, mariadb - - DB_DIALECT=mariadb - # Hôte de la base de données, peut être remplacé par l'IP d'un serveur de base de données existant - - DB_HOST=mariadb - # Port de la base de données - - DB_PORT=3306 - # Nom de la base de données - - DB_DATABASE=nocobase - # Utilisateur de la base de données - - DB_USER=root - # Mot de passe de la base de données - - DB_PASSWORD=nocobase - # Indique si les noms de tables et de champs doivent être convertis au format snake_case. - - DB_UNDERSCORED=true - # Fuseau horaire - - TZ=Asia/Shanghai # Ou votre fuseau horaire local, par exemple Europe/Paris - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Si vous utilisez un service de base de données existant, vous pouvez ne pas démarrer mariadb. - mariadb: - image: mariadb:11 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mariadb:/var/lib/mysql - networks: - - nocobase -``` - - - - - - diff --git a/docs/docs/fr/get-started/installation/git.mdx b/docs/docs/fr/get-started/installation/git.mdx index 9abda5646d8..05375bc6e59 100644 --- a/docs/docs/fr/get-started/installation/git.mdx +++ b/docs/docs/fr/get-started/installation/git.mdx @@ -17,26 +17,26 @@ Cette documentation a été traduite automatiquement par IA. Choisissez une version de NocoBase ([Comparaison des versions](../quickstart.md)) et exécutez la commande correspondante. - + + +```bash +git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase +``` + + + ```bash git clone https://github.com/nocobase/nocobase.git -b next --depth=1 my-nocobase ``` - + ```bash git clone https://github.com/nocobase/nocobase.git -b develop --depth=1 my-nocobase ``` - - - -```bash -git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase -``` - diff --git a/docs/docs/he/get-started/installation/create-nocobase-app.mdx b/docs/docs/he/get-started/installation/create-nocobase-app.mdx index 8642d1a51f9..e1baf32fe0c 100644 --- a/docs/docs/he/get-started/installation/create-nocobase-app.mdx +++ b/docs/docs/he/get-started/installation/create-nocobase-app.mdx @@ -18,7 +18,55 @@ - + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d postgres \ + -e DB_HOST=localhost \ + -e DB_PORT=5432 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mysql \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mariadb \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + + + @@ -66,7 +114,7 @@ npx create-nocobase-app@beta my-nocobase-app -d mariadb \ - + @@ -114,54 +162,6 @@ npx create-nocobase-app@alpha my-nocobase-app -d mariadb \ - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d postgres \ - -e DB_HOST=localhost \ - -e DB_PORT=5432 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mysql \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mariadb \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - - :::warning הסבר על משתני סביבה diff --git a/docs/docs/he/get-started/installation/docker.mdx b/docs/docs/he/get-started/installation/docker.mdx index eacad1dc20f..e03260e7f3c 100644 --- a/docs/docs/he/get-started/installation/docker.mdx +++ b/docs/docs/he/get-started/installation/docker.mdx @@ -41,7 +41,189 @@ vi docker-compose.yml - + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - postgres + environment: + # מפתח היישום, המשמש ליצירת אסימוני משתמש וכדומה. + # אם ה-APP_KEY משתנה, אסימונים ישנים יהפכו ללא חוקיים. + # יכול להיות כל מחרוזת אקראית, וודאו שהיא לא דולפת. + - APP_KEY=your-secret-key + # סוג מסד הנתונים, תומך ב-postgres, mysql, mariadb + - DB_DIALECT=postgres + # מארח מסד הנתונים, ניתן להחליף בכתובת IP של שרת מסד נתונים קיים. + - DB_HOST=postgres + # פורט מסד הנתונים + - DB_PORT=5432 + # שם מסד הנתונים + - DB_DATABASE=nocobase + # משתמש מסד הנתונים + - DB_USER=nocobase + # סיסמת מסד הנתונים + - DB_PASSWORD=nocobase + # אזור זמן + - TZ=Asia/Shanghai + + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # אם אתם משתמשים בשירות מסד נתונים קיים, תוכלו לדלג על הפעלת postgres. + postgres: + image: postgres:16 + restart: always + command: postgres -c wal_level=logical + environment: + POSTGRES_USER: nocobase + POSTGRES_DB: nocobase + POSTGRES_PASSWORD: nocobase + volumes: + - ./storage/db/postgres:/var/lib/postgresql/data + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mysql + environment: + # מפתח היישום, המשמש ליצירת אסימוני משתמש וכדומה. + # אם ה-APP_KEY משתנה, אסימונים ישנים יהפכו ללא חוקיים. + # יכול להיות כל מחרוזת אקראית, וודאו שהיא לא דולפת. + - APP_KEY=your-secret-key + # סוג מסד הנתונים, תומך ב-postgres, mysql, mariadb + - DB_DIALECT=mysql + # מארח מסד הנתונים, ניתן להחליף בכתובת IP של שרת מסד נתונים קיים. + - DB_HOST=mysql + # פורט מסד הנתונים + - DB_PORT=3306 + # שם מסד הנתונים + - DB_DATABASE=nocobase + # משתמש מסד הנתונים + - DB_USER=root + # סיסמת מסד הנתונים + - DB_PASSWORD=nocobase + # האם להמיר שמות טבלאות ושדות לפורמט snake case + - DB_UNDERSCORED=true + # אזור זמן + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # אם אתם משתמשים בשירות מסד נתונים קיים, תוכלו לדלג על הפעלת mysql. + mysql: + image: mysql:8 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mysql:/var/lib/mysql + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mariadb + environment: + # מפתח היישום, המשמש ליצירת אסימוני משתמש וכדומה. + # אם ה-APP_KEY משתנה, אסימונים ישנים יהפכו ללא חוקיים. + # יכול להיות כל מחרוזת אקראית, וודאו שהיא לא דולפת. + - APP_KEY=your-secret-key + # סוג מסד הנתונים, תומך ב-postgres, mysql, mariadb + - DB_DIALECT=mariadb + # מארח מסד הנתונים, ניתן להחליף בכתובת IP של שרת מסד נתונים קיים. + - DB_HOST=mariadb + # פורט מסד הנתונים + - DB_PORT=3306 + # שם מסד הנתונים + - DB_DATABASE=nocobase + # משתמש מסד הנתונים + - DB_USER=root + # סיסמת מסד הנתונים + - DB_PASSWORD=nocobase + # האם להמיר שמות טבלאות ושדות לפורמט snake case + - DB_UNDERSCORED=true + # אזור זמן + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # אם אתם משתמשים בשירות מסד נתונים קיים, תוכלו לדלג על הפעלת mariadb. + mariadb: + image: mariadb:11 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mariadb:/var/lib/mysql + networks: + - nocobase +``` + + + + + + + @@ -223,7 +405,7 @@ services: - + @@ -405,188 +587,6 @@ services: - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - postgres - environment: - # מפתח היישום, המשמש ליצירת אסימוני משתמש וכדומה. - # אם ה-APP_KEY משתנה, אסימונים ישנים יהפכו ללא חוקיים. - # יכול להיות כל מחרוזת אקראית, וודאו שהיא לא דולפת. - - APP_KEY=your-secret-key - # סוג מסד הנתונים, תומך ב-postgres, mysql, mariadb - - DB_DIALECT=postgres - # מארח מסד הנתונים, ניתן להחליף בכתובת IP של שרת מסד נתונים קיים. - - DB_HOST=postgres - # פורט מסד הנתונים - - DB_PORT=5432 - # שם מסד הנתונים - - DB_DATABASE=nocobase - # משתמש מסד הנתונים - - DB_USER=nocobase - # סיסמת מסד הנתונים - - DB_PASSWORD=nocobase - # אזור זמן - - TZ=Asia/Shanghai - - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # אם אתם משתמשים בשירות מסד נתונים קיים, תוכלו לדלג על הפעלת postgres. - postgres: - image: postgres:16 - restart: always - command: postgres -c wal_level=logical - environment: - POSTGRES_USER: nocobase - POSTGRES_DB: nocobase - POSTGRES_PASSWORD: nocobase - volumes: - - ./storage/db/postgres:/var/lib/postgresql/data - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mysql - environment: - # מפתח היישום, המשמש ליצירת אסימוני משתמש וכדומה. - # אם ה-APP_KEY משתנה, אסימונים ישנים יהפכו ללא חוקיים. - # יכול להיות כל מחרוזת אקראית, וודאו שהיא לא דולפת. - - APP_KEY=your-secret-key - # סוג מסד הנתונים, תומך ב-postgres, mysql, mariadb - - DB_DIALECT=mysql - # מארח מסד הנתונים, ניתן להחליף בכתובת IP של שרת מסד נתונים קיים. - - DB_HOST=mysql - # פורט מסד הנתונים - - DB_PORT=3306 - # שם מסד הנתונים - - DB_DATABASE=nocobase - # משתמש מסד הנתונים - - DB_USER=root - # סיסמת מסד הנתונים - - DB_PASSWORD=nocobase - # האם להמיר שמות טבלאות ושדות לפורמט snake case - - DB_UNDERSCORED=true - # אזור זמן - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # אם אתם משתמשים בשירות מסד נתונים קיים, תוכלו לדלג על הפעלת mysql. - mysql: - image: mysql:8 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mysql:/var/lib/mysql - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mariadb - environment: - # מפתח היישום, המשמש ליצירת אסימוני משתמש וכדומה. - # אם ה-APP_KEY משתנה, אסימונים ישנים יהפכו ללא חוקיים. - # יכול להיות כל מחרוזת אקראית, וודאו שהיא לא דולפת. - - APP_KEY=your-secret-key - # סוג מסד הנתונים, תומך ב-postgres, mysql, mariadb - - DB_DIALECT=mariadb - # מארח מסד הנתונים, ניתן להחליף בכתובת IP של שרת מסד נתונים קיים. - - DB_HOST=mariadb - # פורט מסד הנתונים - - DB_PORT=3306 - # שם מסד הנתונים - - DB_DATABASE=nocobase - # משתמש מסד הנתונים - - DB_USER=root - # סיסמת מסד הנתונים - - DB_PASSWORD=nocobase - # האם להמיר שמות טבלאות ושדות לפורמט snake case - - DB_UNDERSCORED=true - # אזור זמן - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # אם אתם משתמשים בשירות מסד נתונים קיים, תוכלו לדלג על הפעלת mariadb. - mariadb: - image: mariadb:11 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mariadb:/var/lib/mysql - networks: - - nocobase -``` - - - - - - diff --git a/docs/docs/he/get-started/installation/git.mdx b/docs/docs/he/get-started/installation/git.mdx index 339d104f8bd..b77a8397454 100644 --- a/docs/docs/he/get-started/installation/git.mdx +++ b/docs/docs/he/get-started/installation/git.mdx @@ -17,26 +17,26 @@ בחרו גרסת NocoBase ([השוואת גרסאות](../quickstart.md)) והריצו את הפקודה המתאימה. - + + +```bash +git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase +``` + + + ```bash git clone https://github.com/nocobase/nocobase.git -b next --depth=1 my-nocobase ``` - + ```bash git clone https://github.com/nocobase/nocobase.git -b develop --depth=1 my-nocobase ``` - - - -```bash -git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase -``` - diff --git a/docs/docs/hi/get-started/installation/create-nocobase-app.mdx b/docs/docs/hi/get-started/installation/create-nocobase-app.mdx index c0bbb055f1d..47aa635bd7b 100644 --- a/docs/docs/hi/get-started/installation/create-nocobase-app.mdx +++ b/docs/docs/hi/get-started/installation/create-nocobase-app.mdx @@ -23,7 +23,55 @@ NocoBase का संस्करण ([संस्करण तुलना](. - + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d postgres \ + -e DB_HOST=localhost \ + -e DB_PORT=5432 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mysql \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mariadb \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + + + @@ -71,7 +119,7 @@ npx create-nocobase-app@beta my-nocobase-app -d mariadb \ - + @@ -119,54 +167,6 @@ npx create-nocobase-app@alpha my-nocobase-app -d mariadb \ - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d postgres \ - -e DB_HOST=localhost \ - -e DB_PORT=5432 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mysql \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mariadb \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - - :::warning एनवायरनमेंट वेरिएबल्स (Environment Variables) की जानकारी diff --git a/docs/docs/hi/get-started/installation/docker.mdx b/docs/docs/hi/get-started/installation/docker.mdx index 0f01e5398ae..a73837fd928 100644 --- a/docs/docs/hi/get-started/installation/docker.mdx +++ b/docs/docs/hi/get-started/installation/docker.mdx @@ -41,7 +41,189 @@ NocoBase का संस्करण ([संस्करणों की त - + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - postgres + environment: + # एप्लीकेशन की कुंजी, जिसका उपयोग उपयोगकर्ता टोकन आदि जनरेट करने के लिए किया जाता है। + # यदि APP_KEY बदल दिया जाता है, तो पुराने टोकन भी अमान्य हो जाएंगे। + # यह कोई भी रैंडम स्ट्रिंग हो सकती है, और सुनिश्चित करें कि यह लीक न हो। + - APP_KEY=your-secret-key + # डेटाबेस प्रकार, postgres, mysql, mariadb को सपोर्ट करता है। + - DB_DIALECT=postgres + # डेटाबेस होस्ट, इसे मौजूदा डेटाबेस सर्वर IP से बदला जा सकता है। + - DB_HOST=postgres + # डेटाबेस पोर्ट + - DB_PORT=5432 + # डेटाबेस नाम + - DB_DATABASE=nocobase + # डेटाबेस उपयोगकर्ता + - DB_USER=nocobase + # डेटाबेस पासवर्ड + - DB_PASSWORD=nocobase + # समय क्षेत्र + - TZ=Asia/Shanghai + + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # यदि आप मौजूदा डेटाबेस सेवा का उपयोग करते हैं, तो आप postgres को शुरू करना छोड़ सकते हैं। + postgres: + image: postgres:16 + restart: always + command: postgres -c wal_level=logical + environment: + POSTGRES_USER: nocobase + POSTGRES_DB: nocobase + POSTGRES_PASSWORD: nocobase + volumes: + - ./storage/db/postgres:/var/lib/postgresql/data + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mysql + environment: + # एप्लीकेशन की कुंजी, जिसका उपयोग उपयोगकर्ता टोकन आदि जनरेट करने के लिए किया जाता है। + # यदि APP_KEY बदल दिया जाता है, तो पुराने टोकन भी अमान्य हो जाएंगे। + # यह कोई भी रैंडम स्ट्रिंग हो सकती है, और सुनिश्चित करें कि यह लीक न हो। + - APP_KEY=your-secret-key + # डेटाबेस प्रकार, postgres, mysql, mariadb को सपोर्ट करता है। + - DB_DIALECT=mysql + # डेटाबेस होस्ट, इसे मौजूदा डेटाबेस सर्वर IP से बदला जा सकता है। + - DB_HOST=mysql + # डेटाबेस पोर्ट + - DB_PORT=3306 + # डेटाबेस नाम + - DB_DATABASE=nocobase + # डेटाबेस उपयोगकर्ता + - DB_USER=root + # डेटाबेस पासवर्ड + - DB_PASSWORD=nocobase + # क्या डेटाबेस तालिका और फ़ील्ड नामों को स्नेक केस शैली में बदलना है। + - DB_UNDERSCORED=true + # समय क्षेत्र + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # यदि आप मौजूदा डेटाबेस सेवा का उपयोग करते हैं, तो आप mysql को शुरू करना छोड़ सकते हैं। + mysql: + image: mysql:8 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mysql:/var/lib/mysql + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mariadb + environment: + # एप्लीकेशन की कुंजी, जिसका उपयोग उपयोगकर्ता टोकन आदि जनरेट करने के लिए किया जाता है। + # यदि APP_KEY बदल दिया जाता है, तो पुराने टोकन भी अमान्य हो जाएंगे। + # यह कोई भी रैंडम स्ट्रिंग हो सकती है, और सुनिश्चित करें कि यह लीक न हो। + - APP_KEY=your-secret-key + # डेटाबेस प्रकार, postgres, mysql, mariadb को सपोर्ट करता है। + - DB_DIALECT=mariadb + # डेटाबेस होस्ट, इसे मौजूदा डेटाबेस सर्वर IP से बदला जा सकता है। + - DB_HOST=mariadb + # डेटाबेस पोर्ट + - DB_PORT=3306 + # डेटाबेस नाम + - DB_DATABASE=nocobase + # डेटाबेस उपयोगकर्ता + - DB_USER=root + # डेटाबेस पासवर्ड + - DB_PASSWORD=nocobase + # क्या डेटाबेस तालिका और फ़ील्ड नामों को स्नेक केस शैली में बदलना है। + - DB_UNDERSCORED=true + # समय क्षेत्र + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # यदि आप मौजूदा डेटाबेस सेवा का उपयोग करते हैं, तो आप mariadb को शुरू करना छोड़ सकते हैं। + mariadb: + image: mariadb:11 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mariadb:/var/lib/mysql + networks: + - nocobase +``` + + + + + + + @@ -223,7 +405,7 @@ services: - + @@ -405,188 +587,6 @@ services: - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - postgres - environment: - # एप्लीकेशन की कुंजी, जिसका उपयोग उपयोगकर्ता टोकन आदि जनरेट करने के लिए किया जाता है। - # यदि APP_KEY बदल दिया जाता है, तो पुराने टोकन भी अमान्य हो जाएंगे। - # यह कोई भी रैंडम स्ट्रिंग हो सकती है, और सुनिश्चित करें कि यह लीक न हो। - - APP_KEY=your-secret-key - # डेटाबेस प्रकार, postgres, mysql, mariadb को सपोर्ट करता है। - - DB_DIALECT=postgres - # डेटाबेस होस्ट, इसे मौजूदा डेटाबेस सर्वर IP से बदला जा सकता है। - - DB_HOST=postgres - # डेटाबेस पोर्ट - - DB_PORT=5432 - # डेटाबेस नाम - - DB_DATABASE=nocobase - # डेटाबेस उपयोगकर्ता - - DB_USER=nocobase - # डेटाबेस पासवर्ड - - DB_PASSWORD=nocobase - # समय क्षेत्र - - TZ=Asia/Shanghai - - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # यदि आप मौजूदा डेटाबेस सेवा का उपयोग करते हैं, तो आप postgres को शुरू करना छोड़ सकते हैं। - postgres: - image: postgres:16 - restart: always - command: postgres -c wal_level=logical - environment: - POSTGRES_USER: nocobase - POSTGRES_DB: nocobase - POSTGRES_PASSWORD: nocobase - volumes: - - ./storage/db/postgres:/var/lib/postgresql/data - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mysql - environment: - # एप्लीकेशन की कुंजी, जिसका उपयोग उपयोगकर्ता टोकन आदि जनरेट करने के लिए किया जाता है। - # यदि APP_KEY बदल दिया जाता है, तो पुराने टोकन भी अमान्य हो जाएंगे। - # यह कोई भी रैंडम स्ट्रिंग हो सकती है, और सुनिश्चित करें कि यह लीक न हो। - - APP_KEY=your-secret-key - # डेटाबेस प्रकार, postgres, mysql, mariadb को सपोर्ट करता है। - - DB_DIALECT=mysql - # डेटाबेस होस्ट, इसे मौजूदा डेटाबेस सर्वर IP से बदला जा सकता है। - - DB_HOST=mysql - # डेटाबेस पोर्ट - - DB_PORT=3306 - # डेटाबेस नाम - - DB_DATABASE=nocobase - # डेटाबेस उपयोगकर्ता - - DB_USER=root - # डेटाबेस पासवर्ड - - DB_PASSWORD=nocobase - # क्या डेटाबेस तालिका और फ़ील्ड नामों को स्नेक केस शैली में बदलना है। - - DB_UNDERSCORED=true - # समय क्षेत्र - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # यदि आप मौजूदा डेटाबेस सेवा का उपयोग करते हैं, तो आप mysql को शुरू करना छोड़ सकते हैं। - mysql: - image: mysql:8 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mysql:/var/lib/mysql - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mariadb - environment: - # एप्लीकेशन की कुंजी, जिसका उपयोग उपयोगकर्ता टोकन आदि जनरेट करने के लिए किया जाता है। - # यदि APP_KEY बदल दिया जाता है, तो पुराने टोकन भी अमान्य हो जाएंगे। - # यह कोई भी रैंडम स्ट्रिंग हो सकती है, और सुनिश्चित करें कि यह लीक न हो। - - APP_KEY=your-secret-key - # डेटाबेस प्रकार, postgres, mysql, mariadb को सपोर्ट करता है। - - DB_DIALECT=mariadb - # डेटाबेस होस्ट, इसे मौजूदा डेटाबेस सर्वर IP से बदला जा सकता है। - - DB_HOST=mariadb - # डेटाबेस पोर्ट - - DB_PORT=3306 - # डेटाबेस नाम - - DB_DATABASE=nocobase - # डेटाबेस उपयोगकर्ता - - DB_USER=root - # डेटाबेस पासवर्ड - - DB_PASSWORD=nocobase - # क्या डेटाबेस तालिका और फ़ील्ड नामों को स्नेक केस शैली में बदलना है। - - DB_UNDERSCORED=true - # समय क्षेत्र - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # यदि आप मौजूदा डेटाबेस सेवा का उपयोग करते हैं, तो आप mariadb को शुरू करना छोड़ सकते हैं। - mariadb: - image: mariadb:11 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mariadb:/var/lib/mysql - networks: - - nocobase -``` - - - - - - diff --git a/docs/docs/hi/get-started/installation/git.mdx b/docs/docs/hi/get-started/installation/git.mdx index 2480b0e9d39..7938a053ec6 100644 --- a/docs/docs/hi/get-started/installation/git.mdx +++ b/docs/docs/hi/get-started/installation/git.mdx @@ -17,26 +17,26 @@ NocoBase का एक संस्करण चुनें ([संस्करण तुलना](../quickstart.md)) और संबंधित कमांड चलाएँ। - + + +```bash +git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase +``` + + + ```bash git clone https://github.com/nocobase/nocobase.git -b next --depth=1 my-nocobase ``` - + ```bash git clone https://github.com/nocobase/nocobase.git -b develop --depth=1 my-nocobase ``` - - - -```bash -git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase -``` - diff --git a/docs/docs/id/get-started/installation/create-nocobase-app.mdx b/docs/docs/id/get-started/installation/create-nocobase-app.mdx index a5b837b1b38..7a489a444e6 100644 --- a/docs/docs/id/get-started/installation/create-nocobase-app.mdx +++ b/docs/docs/id/get-started/installation/create-nocobase-app.mdx @@ -23,7 +23,55 @@ Pilih versi NocoBase ([Perbandingan Versi](../quickstart.md)) dan jenis database - + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d postgres \ + -e DB_HOST=localhost \ + -e DB_PORT=5432 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mysql \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mariadb \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + + + @@ -71,7 +119,7 @@ npx create-nocobase-app@beta my-nocobase-app -d mariadb \ - + @@ -119,54 +167,6 @@ npx create-nocobase-app@alpha my-nocobase-app -d mariadb \ - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d postgres \ - -e DB_HOST=localhost \ - -e DB_PORT=5432 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mysql \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mariadb \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - - :::warning Penjelasan Variabel Lingkungan diff --git a/docs/docs/id/get-started/installation/docker.mdx b/docs/docs/id/get-started/installation/docker.mdx index b3e68ed53d5..120976c7ef2 100644 --- a/docs/docs/id/get-started/installation/docker.mdx +++ b/docs/docs/id/get-started/installation/docker.mdx @@ -42,7 +42,189 @@ Pilih versi NocoBase ([Perbandingan Versi](../quickstart.md)) dan jenis basis da - + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - postgres + environment: + # Kunci aplikasi, digunakan untuk menghasilkan token pengguna, dll. + # Jika APP_KEY diubah, token lama akan menjadi tidak valid. + # Bisa berupa string acak apa pun, dan pastikan tidak bocor ke luar. + - APP_KEY=your-secret-key + # Jenis basis data, mendukung postgres, mysql, mariadb + - DB_DIALECT=postgres + # Host basis data, bisa diganti dengan IP server basis data yang sudah ada. + - DB_HOST=postgres + # Port basis data + - DB_PORT=5432 + # Nama basis data + - DB_DATABASE=nocobase + # Pengguna basis data + - DB_USER=nocobase + # Kata sandi basis data + - DB_PASSWORD=nocobase + # Zona waktu + - TZ=Asia/Shanghai + + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Jika Anda menggunakan layanan basis data yang sudah ada, Anda bisa tidak menjalankan postgres. + postgres: + image: postgres:16 + restart: always + command: postgres -c wal_level=logical + environment: + POSTGRES_USER: nocobase + POSTGRES_DB: nocobase + POSTGRES_PASSWORD: nocobase + volumes: + - ./storage/db/postgres:/var/lib/postgresql/data + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mysql + environment: + # Kunci aplikasi, digunakan untuk menghasilkan token pengguna, dll. + # Jika APP_KEY diubah, token lama akan menjadi tidak valid. + # Bisa berupa string acak apa pun, dan pastikan tidak bocor ke luar. + - APP_KEY=your-secret-key + # Jenis basis data, mendukung postgres, mysql, mariadb + - DB_DIALECT=mysql + # Host basis data, bisa diganti dengan IP server basis data yang sudah ada. + - DB_HOST=mysql + # Port basis data + - DB_PORT=3306 + # Nama basis data + - DB_DATABASE=nocobase + # Pengguna basis data + - DB_USER=root + # Kata sandi basis data + - DB_PASSWORD=nocobase + # Apakah nama tabel dan kolom basis data diubah menjadi gaya snake case. + - DB_UNDERSCORED=true + # Zona waktu + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Jika Anda menggunakan layanan basis data yang sudah ada, Anda bisa tidak menjalankan mysql. + mysql: + image: mysql:8 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mysql:/var/lib/mysql + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mariadb + environment: + # Kunci aplikasi, digunakan untuk menghasilkan token pengguna, dll. + # Jika APP_KEY diubah, token lama akan menjadi tidak valid. + # Bisa berupa string acak apa pun, dan pastikan tidak bocor ke luar. + - APP_KEY=your-secret-key + # Jenis basis data, mendukung postgres, mysql, mariadb + - DB_DIALECT=mariadb + # Host basis data, bisa diganti dengan IP server basis data yang sudah ada. + - DB_HOST=mariadb + # Port basis data + - DB_PORT=3306 + # Nama basis data + - DB_DATABASE=nocobase + # Pengguna basis data + - DB_USER=root + # Kata sandi basis data + - DB_PASSWORD=nocobase + # Apakah nama tabel dan kolom basis data diubah menjadi gaya snake case. + - DB_UNDERSCORED=true + # Zona waktu + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Jika Anda menggunakan layanan basis data yang sudah ada, Anda bisa tidak menjalankan mariadb. + mariadb: + image: mariadb:11 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mariadb:/var/lib/mysql + networks: + - nocobase +``` + + + + + + + @@ -224,7 +406,7 @@ services: - + @@ -406,188 +588,6 @@ services: - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - postgres - environment: - # Kunci aplikasi, digunakan untuk menghasilkan token pengguna, dll. - # Jika APP_KEY diubah, token lama akan menjadi tidak valid. - # Bisa berupa string acak apa pun, dan pastikan tidak bocor ke luar. - - APP_KEY=your-secret-key - # Jenis basis data, mendukung postgres, mysql, mariadb - - DB_DIALECT=postgres - # Host basis data, bisa diganti dengan IP server basis data yang sudah ada. - - DB_HOST=postgres - # Port basis data - - DB_PORT=5432 - # Nama basis data - - DB_DATABASE=nocobase - # Pengguna basis data - - DB_USER=nocobase - # Kata sandi basis data - - DB_PASSWORD=nocobase - # Zona waktu - - TZ=Asia/Shanghai - - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Jika Anda menggunakan layanan basis data yang sudah ada, Anda bisa tidak menjalankan postgres. - postgres: - image: postgres:16 - restart: always - command: postgres -c wal_level=logical - environment: - POSTGRES_USER: nocobase - POSTGRES_DB: nocobase - POSTGRES_PASSWORD: nocobase - volumes: - - ./storage/db/postgres:/var/lib/postgresql/data - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mysql - environment: - # Kunci aplikasi, digunakan untuk menghasilkan token pengguna, dll. - # Jika APP_KEY diubah, token lama akan menjadi tidak valid. - # Bisa berupa string acak apa pun, dan pastikan tidak bocor ke luar. - - APP_KEY=your-secret-key - # Jenis basis data, mendukung postgres, mysql, mariadb - - DB_DIALECT=mysql - # Host basis data, bisa diganti dengan IP server basis data yang sudah ada. - - DB_HOST=mysql - # Port basis data - - DB_PORT=3306 - # Nama basis data - - DB_DATABASE=nocobase - # Pengguna basis data - - DB_USER=root - # Kata sandi basis data - - DB_PASSWORD=nocobase - # Apakah nama tabel dan kolom basis data diubah menjadi gaya snake case. - - DB_UNDERSCORED=true - # Zona waktu - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Jika Anda menggunakan layanan basis data yang sudah ada, Anda bisa tidak menjalankan mysql. - mysql: - image: mysql:8 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mysql:/var/lib/mysql - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mariadb - environment: - # Kunci aplikasi, digunakan untuk menghasilkan token pengguna, dll. - # Jika APP_KEY diubah, token lama akan menjadi tidak valid. - # Bisa berupa string acak apa pun, dan pastikan tidak bocor ke luar. - - APP_KEY=your-secret-key - # Jenis basis data, mendukung postgres, mysql, mariadb - - DB_DIALECT=mariadb - # Host basis data, bisa diganti dengan IP server basis data yang sudah ada. - - DB_HOST=mariadb - # Port basis data - - DB_PORT=3306 - # Nama basis data - - DB_DATABASE=nocobase - # Pengguna basis data - - DB_USER=root - # Kata sandi basis data - - DB_PASSWORD=nocobase - # Apakah nama tabel dan kolom basis data diubah menjadi gaya snake case. - - DB_UNDERSCORED=true - # Zona waktu - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Jika Anda menggunakan layanan basis data yang sudah ada, Anda bisa tidak menjalankan mariadb. - mariadb: - image: mariadb:11 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mariadb:/var/lib/mysql - networks: - - nocobase -``` - - - - - - diff --git a/docs/docs/id/get-started/installation/git.mdx b/docs/docs/id/get-started/installation/git.mdx index 9fddcf3d357..9d1f9e70ed4 100644 --- a/docs/docs/id/get-started/installation/git.mdx +++ b/docs/docs/id/get-started/installation/git.mdx @@ -23,26 +23,26 @@ $ yarn config set registry https://registry.npmmirror.com/ Pilih versi NocoBase ([Perbandingan Versi](../quickstart.md)) dan jalankan perintah yang sesuai. - + + +```bash +git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase +``` + + + ```bash git clone https://github.com/nocobase/nocobase.git -b next --depth=1 my-nocobase ``` - + ```bash git clone https://github.com/nocobase/nocobase.git -b develop --depth=1 my-nocobase ``` - - - -```bash -git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase -``` - diff --git a/docs/docs/it/get-started/installation/create-nocobase-app.mdx b/docs/docs/it/get-started/installation/create-nocobase-app.mdx index 703cfefc838..f1a47c8bd64 100644 --- a/docs/docs/it/get-started/installation/create-nocobase-app.mdx +++ b/docs/docs/it/get-started/installation/create-nocobase-app.mdx @@ -24,7 +24,55 @@ Selezioni la versione di NocoBase ([Confronto versioni](../quickstart.md)) e il - + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d postgres \ + -e DB_HOST=localhost \ + -e DB_PORT=5432 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mysql \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mariadb \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + + + @@ -72,7 +120,7 @@ npx create-nocobase-app@beta my-nocobase-app -d mariadb \ - + @@ -120,54 +168,6 @@ npx create-nocobase-app@alpha my-nocobase-app -d mariadb \ - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d postgres \ - -e DB_HOST=localhost \ - -e DB_PORT=5432 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mysql \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mariadb \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - - :::warning Variabili d'ambiente diff --git a/docs/docs/it/get-started/installation/docker.mdx b/docs/docs/it/get-started/installation/docker.mdx index 65f0af89991..f90b8f82e43 100644 --- a/docs/docs/it/get-started/installation/docker.mdx +++ b/docs/docs/it/get-started/installation/docker.mdx @@ -41,7 +41,189 @@ Scegliere una versione di NocoBase ([Confronto versioni](../quickstart.md)) e il - + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - postgres + environment: + # Chiave dell'applicazione, utilizzata per generare i token utente, ecc. + # Se APP_KEY viene modificata, i vecchi token diventeranno invalidi. + # Può essere una stringa casuale qualsiasi, e assicurarsi che non venga divulgata. + - APP_KEY=your-secret-key + # Tipo di database, supporta postgres, mysql, mariadb. + - DB_DIALECT=postgres + # Host del database, può essere sostituito con l'IP di un server di database esistente. + - DB_HOST=postgres + # Porta del database + - DB_PORT=5432 + # Nome del database + - DB_DATABASE=nocobase + # Utente del database + - DB_USER=nocobase + # Password del database + - DB_PASSWORD=nocobase + # Fuso orario + - TZ=Asia/Shanghai + + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Se utilizza un servizio di database esistente, può evitare di avviare postgres. + postgres: + image: registry.cn-shanghai.aliyaliyuncs.com/nocobase/postgres:16 + restart: always + command: postgres -c wal_level=logical + environment: + POSTGRES_USER: nocobase + POSTGRES_DB: nocobase + POSTGRES_PASSWORD: nocobase + volumes: + - ./storage/db/postgres:/var/lib/postgresql/data + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mysql + environment: + # Chiave dell'applicazione, utilizzata per generare i token utente, ecc. + # Se APP_KEY viene modificata, i vecchi token diventeranno invalidi. + # Può essere una stringa casuale qualsiasi, e assicurarsi che non venga divulgata. + - APP_KEY=your-secret-key + # Tipo di database, supporta postgres, mysql, mariadb. + - DB_DIALECT=mysql + # Host del database, può essere sostituito con l'IP di un server di database esistente. + - DB_HOST=mysql + # Porta del database + - DB_PORT=3306 + # Nome del database + - DB_DATABASE=nocobase + # Utente del database + - DB_USER=root + # Password del database + - DB_PASSWORD=nocobase + # Se convertire i nomi di tabelle e campi in formato snake_case. + - DB_UNDERSCORED=true + # Fuso orario + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Se utilizza un servizio di database esistente, può evitare di avviare mysql. + mysql: + image: mysql:8 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mysql:/var/lib/mysql + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mariadb + environment: + # Chiave dell'applicazione, utilizzata per generare i token utente, ecc. + # Se APP_KEY viene modificata, i vecchi token diventeranno invalidi. + # Può essere una stringa casuale qualsiasi, e assicurarsi che non venga divulgata. + - APP_KEY=your-secret-key + # Tipo di database, supporta postgres, mysql, mariadb. + - DB_DIALECT=mariadb + # Host del database, può essere sostituito con l'IP di un server di database esistente. + - DB_HOST=mariadb + # Porta del database + - DB_PORT=3306 + # Nome del database + - DB_DATABASE=nocobase + # Utente del database + - DB_USER=root + # Password del database + - DB_PASSWORD=nocobase + # Se convertire i nomi di tabelle e campi in formato snake_case. + - DB_UNDERSCORED=true + # Fuso orario + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Se utilizza un servizio di database esistente, può evitare di avviare mariadb. + mariadb: + image: mariadb:11 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mariadb:/var/lib/mysql + networks: + - nocobase +``` + + + + + + + @@ -223,7 +405,7 @@ services: - + @@ -405,188 +587,6 @@ services: - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - postgres - environment: - # Chiave dell'applicazione, utilizzata per generare i token utente, ecc. - # Se APP_KEY viene modificata, i vecchi token diventeranno invalidi. - # Può essere una stringa casuale qualsiasi, e assicurarsi che non venga divulgata. - - APP_KEY=your-secret-key - # Tipo di database, supporta postgres, mysql, mariadb. - - DB_DIALECT=postgres - # Host del database, può essere sostituito con l'IP di un server di database esistente. - - DB_HOST=postgres - # Porta del database - - DB_PORT=5432 - # Nome del database - - DB_DATABASE=nocobase - # Utente del database - - DB_USER=nocobase - # Password del database - - DB_PASSWORD=nocobase - # Fuso orario - - TZ=Asia/Shanghai - - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Se utilizza un servizio di database esistente, può evitare di avviare postgres. - postgres: - image: registry.cn-shanghai.aliyaliyuncs.com/nocobase/postgres:16 - restart: always - command: postgres -c wal_level=logical - environment: - POSTGRES_USER: nocobase - POSTGRES_DB: nocobase - POSTGRES_PASSWORD: nocobase - volumes: - - ./storage/db/postgres:/var/lib/postgresql/data - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mysql - environment: - # Chiave dell'applicazione, utilizzata per generare i token utente, ecc. - # Se APP_KEY viene modificata, i vecchi token diventeranno invalidi. - # Può essere una stringa casuale qualsiasi, e assicurarsi che non venga divulgata. - - APP_KEY=your-secret-key - # Tipo di database, supporta postgres, mysql, mariadb. - - DB_DIALECT=mysql - # Host del database, può essere sostituito con l'IP di un server di database esistente. - - DB_HOST=mysql - # Porta del database - - DB_PORT=3306 - # Nome del database - - DB_DATABASE=nocobase - # Utente del database - - DB_USER=root - # Password del database - - DB_PASSWORD=nocobase - # Se convertire i nomi di tabelle e campi in formato snake_case. - - DB_UNDERSCORED=true - # Fuso orario - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Se utilizza un servizio di database esistente, può evitare di avviare mysql. - mysql: - image: mysql:8 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mysql:/var/lib/mysql - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mariadb - environment: - # Chiave dell'applicazione, utilizzata per generare i token utente, ecc. - # Se APP_KEY viene modificata, i vecchi token diventeranno invalidi. - # Può essere una stringa casuale qualsiasi, e assicurarsi che non venga divulgata. - - APP_KEY=your-secret-key - # Tipo di database, supporta postgres, mysql, mariadb. - - DB_DIALECT=mariadb - # Host del database, può essere sostituito con l'IP di un server di database esistente. - - DB_HOST=mariadb - # Porta del database - - DB_PORT=3306 - # Nome del database - - DB_DATABASE=nocobase - # Utente del database - - DB_USER=root - # Password del database - - DB_PASSWORD=nocobase - # Se convertire i nomi di tabelle e campi in formato snake_case. - - DB_UNDERSCORED=true - # Fuso orario - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Se utilizza un servizio di database esistente, può evitare di avviare mariadb. - mariadb: - image: mariadb:11 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mariadb:/var/lib/mysql - networks: - - nocobase -``` - - - - - - diff --git a/docs/docs/it/get-started/installation/git.mdx b/docs/docs/it/get-started/installation/git.mdx index ef9a512c5cf..6213dc5a878 100644 --- a/docs/docs/it/get-started/installation/git.mdx +++ b/docs/docs/it/get-started/installation/git.mdx @@ -23,26 +23,26 @@ $ yarn config set registry https://registry.npmmirror.com/ Scelga una versione di NocoBase ([Confronto versioni](../quickstart.md)) ed esegua il comando corrispondente. - + + +```bash +git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase +``` + + + ```bash git clone https://github.com/nocobase/nocobase.git -b next --depth=1 my-nocobase ``` - + ```bash git clone https://github.com/nocobase/nocobase.git -b develop --depth=1 my-nocobase ``` - - - -```bash -git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase -``` - diff --git a/docs/docs/ja/get-started/installation/create-nocobase-app.mdx b/docs/docs/ja/get-started/installation/create-nocobase-app.mdx index f76b21a0955..691dc8c6caf 100644 --- a/docs/docs/ja/get-started/installation/create-nocobase-app.mdx +++ b/docs/docs/ja/get-started/installation/create-nocobase-app.mdx @@ -24,7 +24,55 @@ NocoBase のバージョン([バージョン比較](../quickstart.md))とデ - + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d postgres \ + -e DB_HOST=localhost \ + -e DB_PORT=5432 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mysql \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mariadb \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + + + @@ -72,7 +120,7 @@ npx create-nocobase-app@beta my-nocobase-app -d mariadb \ - + @@ -120,54 +168,6 @@ npx create-nocobase-app@alpha my-nocobase-app -d mariadb \ - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d postgres \ - -e DB_HOST=localhost \ - -e DB_PORT=5432 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mysql \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mariadb \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - - :::warning 環境変数について diff --git a/docs/docs/ja/get-started/installation/docker.mdx b/docs/docs/ja/get-started/installation/docker.mdx index 70dfedd67e6..7733000f529 100644 --- a/docs/docs/ja/get-started/installation/docker.mdx +++ b/docs/docs/ja/get-started/installation/docker.mdx @@ -42,7 +42,189 @@ NocoBase のバージョン([バージョン比較](../quickstart.md))とデ - + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - postgres + environment: + # アプリケーションのキー。ユーザーのトークンなどを生成するために使用されます。 + # `APP_KEY` を変更すると、古いトークンは無効になります。 + # 任意のランダムな文字列で構いません。外部に漏洩しないように注意してください。 + - APP_KEY=your-secret-key + # データベースタイプ。postgres, mysql, mariadb をサポートしています。 + - DB_DIALECT=postgres + # データベースホスト。既存のデータベースサーバーの IP アドレスに置き換えることができます。 + - DB_HOST=postgres + # データベースポート + - DB_PORT=5432 + # データベース名 + - DB_DATABASE=nocobase + # データベースユーザー + - DB_USER=nocobase + # データベースパスワード + - DB_PASSWORD=nocobase + # タイムゾーン + - TZ=Asia/Shanghai + + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # 既存のデータベースサービスを使用する場合は、postgres を起動しないことも可能です。 + postgres: + image: postgres:16 + restart: always + command: postgres -c wal_level=logical + environment: + POSTGRES_USER: nocobase + POSTGRES_DB: nocobase + POSTGRES_PASSWORD: nocobase + volumes: + - ./storage/db/postgres:/var/lib/postgresql/data + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mysql + environment: + # アプリケーションのキー。ユーザーのトークンなどを生成するために使用されます。 + # `APP_KEY` を変更すると、古いトークンは無効になります。 + # 任意のランダムな文字列で構いません。外部に漏洩しないように注意してください。 + - APP_KEY=your-secret-key + # データベースタイプ。postgres, mysql, mariadb をサポートしています。 + - DB_DIALECT=mysql + # データベースホスト。既存のデータベースサーバーの IP アドレスに置き換えることができます。 + - DB_HOST=mysql + # データベースポート + - DB_PORT=3306 + # データベース名 + - DB_DATABASE=nocobase + # データベースユーザー + - DB_USER=root + # データベースパスワード + - DB_PASSWORD=nocobase + # データベースのテーブル名、フィールド名をスネークケース形式に変換するかどうか。 + - DB_UNDERSCORED=true + # タイムゾーン + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # 既存のデータベースサービスを使用する場合は、mysql を起動しないことも可能です。 + mysql: + image: mysql:8 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mysql:/var/lib/mysql + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mariadb + environment: + # アプリケーションのキー。ユーザーのトークンなどを生成するために使用されます。 + # `APP_KEY` を変更すると、古いトークンは無効になります。 + # 任意のランダムな文字列で構いません。外部に漏洩しないように注意してください。 + - APP_KEY=your-secret-key + # データベースタイプ。postgres, mysql, mariadb をサポートしています。 + - DB_DIALECT=mariadb + # データベースホスト。既存のデータベースサーバーの IP アドレスに置き換えることができます。 + - DB_HOST=mariadb + # データベースポート + - DB_PORT=3306 + # データベース名 + - DB_DATABASE=nocobase + # データベースユーザー + - DB_USER=root + # データベースパスワード + - DB_PASSWORD=nocobase + # データベースのテーブル名、フィールド名をスネークケース形式に変換するかどうか。 + - DB_UNDERSCORED=true + # タイムゾーン + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # 既存のデータベースサービスを使用する場合は、mariadb を起動しないことも可能です。 + mariadb: + image: mariadb:11 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mariadb:/var/lib/mysql + networks: + - nocobase +``` + + + + + + + @@ -224,7 +406,7 @@ services: - + @@ -406,188 +588,6 @@ services: - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - postgres - environment: - # アプリケーションのキー。ユーザーのトークンなどを生成するために使用されます。 - # `APP_KEY` を変更すると、古いトークンは無効になります。 - # 任意のランダムな文字列で構いません。外部に漏洩しないように注意してください。 - - APP_KEY=your-secret-key - # データベースタイプ。postgres, mysql, mariadb をサポートしています。 - - DB_DIALECT=postgres - # データベースホスト。既存のデータベースサーバーの IP アドレスに置き換えることができます。 - - DB_HOST=postgres - # データベースポート - - DB_PORT=5432 - # データベース名 - - DB_DATABASE=nocobase - # データベースユーザー - - DB_USER=nocobase - # データベースパスワード - - DB_PASSWORD=nocobase - # タイムゾーン - - TZ=Asia/Shanghai - - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # 既存のデータベースサービスを使用する場合は、postgres を起動しないことも可能です。 - postgres: - image: postgres:16 - restart: always - command: postgres -c wal_level=logical - environment: - POSTGRES_USER: nocobase - POSTGRES_DB: nocobase - POSTGRES_PASSWORD: nocobase - volumes: - - ./storage/db/postgres:/var/lib/postgresql/data - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mysql - environment: - # アプリケーションのキー。ユーザーのトークンなどを生成するために使用されます。 - # `APP_KEY` を変更すると、古いトークンは無効になります。 - # 任意のランダムな文字列で構いません。外部に漏洩しないように注意してください。 - - APP_KEY=your-secret-key - # データベースタイプ。postgres, mysql, mariadb をサポートしています。 - - DB_DIALECT=mysql - # データベースホスト。既存のデータベースサーバーの IP アドレスに置き換えることができます。 - - DB_HOST=mysql - # データベースポート - - DB_PORT=3306 - # データベース名 - - DB_DATABASE=nocobase - # データベースユーザー - - DB_USER=root - # データベースパスワード - - DB_PASSWORD=nocobase - # データベースのテーブル名、フィールド名をスネークケース形式に変換するかどうか。 - - DB_UNDERSCORED=true - # タイムゾーン - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # 既存のデータベースサービスを使用する場合は、mysql を起動しないことも可能です。 - mysql: - image: mysql:8 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mysql:/var/lib/mysql - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mariadb - environment: - # アプリケーションのキー。ユーザーのトークンなどを生成するために使用されます。 - # `APP_KEY` を変更すると、古いトークンは無効になります。 - # 任意のランダムな文字列で構いません。外部に漏洩しないように注意してください。 - - APP_KEY=your-secret-key - # データベースタイプ。postgres, mysql, mariadb をサポートしています。 - - DB_DIALECT=mariadb - # データベースホスト。既存のデータベースサーバーの IP アドレスに置き換えることができます。 - - DB_HOST=mariadb - # データベースポート - - DB_PORT=3306 - # データベース名 - - DB_DATABASE=nocobase - # データベースユーザー - - DB_USER=root - # データベースパスワード - - DB_PASSWORD=nocobase - # データベースのテーブル名、フィールド名をスネークケース形式に変換するかどうか。 - - DB_UNDERSCORED=true - # タイムゾーン - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # 既存のデータベースサービスを使用する場合は、mariadb を起動しないことも可能です。 - mariadb: - image: mariadb:11 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mariadb:/var/lib/mysql - networks: - - nocobase -``` - - - - - - ## 3. NocoBase をインストールして起動する diff --git a/docs/docs/ja/get-started/installation/git.mdx b/docs/docs/ja/get-started/installation/git.mdx index 4d756ea7871..a0170d8c440 100644 --- a/docs/docs/ja/get-started/installation/git.mdx +++ b/docs/docs/ja/get-started/installation/git.mdx @@ -17,26 +17,26 @@ NocoBase のバージョンを選択し([バージョン比較](../quickstart.md))、対応するコマンドを実行してください。 - + + +```bash +git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase +``` + + + ```bash git clone https://github.com/nocobase/nocobase.git -b next --depth=1 my-nocobase ``` - + ```bash git clone https://github.com/nocobase/nocobase.git -b develop --depth=1 my-nocobase ``` - - - -```bash -git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase -``` - diff --git a/docs/docs/ko/get-started/installation/create-nocobase-app.mdx b/docs/docs/ko/get-started/installation/create-nocobase-app.mdx index 1c9ee2eb249..2df7e5f1013 100644 --- a/docs/docs/ko/get-started/installation/create-nocobase-app.mdx +++ b/docs/docs/ko/get-started/installation/create-nocobase-app.mdx @@ -18,7 +18,55 @@ NocoBase 버전([버전 비교](../quickstart.md))과 데이터베이스 유형 - + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d postgres \ + -e DB_HOST=localhost \ + -e DB_PORT=5432 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mysql \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mariadb \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + + + @@ -66,7 +114,7 @@ npx create-nocobase-app@beta my-nocobase-app -d mariadb \ - + @@ -114,54 +162,6 @@ npx create-nocobase-app@alpha my-nocobase-app -d mariadb \ - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d postgres \ - -e DB_HOST=localhost \ - -e DB_PORT=5432 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mysql \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mariadb \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - - :::warning 환경 변수 설명 diff --git a/docs/docs/ko/get-started/installation/docker.mdx b/docs/docs/ko/get-started/installation/docker.mdx index 76754ede3b7..2c60d2e66ca 100644 --- a/docs/docs/ko/get-started/installation/docker.mdx +++ b/docs/docs/ko/get-started/installation/docker.mdx @@ -41,7 +41,189 @@ NocoBase 버전([버전 비교](../quickstart.md))과 데이터베이스 유형 - + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - postgres + environment: + # 애플리케이션 키. 사용자 토큰 등을 생성하는 데 사용됩니다. + # APP_KEY가 변경되면 이전 토큰도 무효화됩니다. + # 임의의 무작위 문자열이 될 수 있으며, 외부에 유출되지 않도록 주의하세요. + - APP_KEY=your-secret-key + # 데이터베이스 유형. postgres, mysql, mariadb를 지원합니다. + - DB_DIALECT=postgres + # 데이터베이스 호스트. 기존 데이터베이스 서버 IP로 대체할 수 있습니다. + - DB_HOST=postgres + # 데이터베이스 포트 + - DB_PORT=5432 + # 데이터베이스 이름 + - DB_DATABASE=nocobase + # 데이터베이스 사용자 + - DB_USER=nocobase + # 데이터베이스 비밀번호 + - DB_PASSWORD=nocobase + # 시간대. 필요에 따라 현지 시간대로 변경하세요. (예: Asia/Seoul) + - TZ=Asia/Shanghai + + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # 기존 데이터베이스 서비스를 사용하는 경우, postgres를 시작하지 않아도 됩니다. + postgres: + image: postgres:16 + restart: always + command: postgres -c wal_level=logical + environment: + POSTGRES_USER: nocobase + POSTGRES_DB: nocobase + POSTGRES_PASSWORD: nocobase + volumes: + - ./storage/db/postgres:/var/lib/postgresql/data + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mysql + environment: + # 애플리케이션 키. 사용자 토큰 등을 생성하는 데 사용됩니다. + # APP_KEY가 변경되면 이전 토큰도 무효화됩니다. + # 임의의 무작위 문자열이 될 수 있으며, 외부에 유출되지 않도록 주의하세요. + - APP_KEY=your-secret-key + # 데이터베이스 유형. postgres, mysql, mariadb를 지원합니다. + - DB_DIALECT=mysql + # 데이터베이스 호스트. 기존 데이터베이스 서버 IP로 대체할 수 있습니다. + - DB_HOST=mysql + # 데이터베이스 포트 + - DB_PORT=3306 + # 데이터베이스 이름 + - DB_DATABASE=nocobase + # 데이터베이스 사용자 + - DB_USER=root + # 데이터베이스 비밀번호 + - DB_PASSWORD=nocobase + # 데이터베이스 테이블 및 필드 이름을 스네이크 케이스 스타일로 변환할지 여부 + - DB_UNDERSCORED=true + # 시간대. 필요에 따라 현지 시간대로 변경하세요. (예: Asia/Seoul) + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # 기존 데이터베이스 서비스를 사용하는 경우, mysql을 시작하지 않아도 됩니다. + mysql: + image: mysql:8 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mysql:/var/lib/mysql + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mariadb + environment: + # 애플리케이션 키. 사용자 토큰 등을 생성하는 데 사용됩니다. + # APP_KEY가 변경되면 이전 토큰도 무효화됩니다. + # 임의의 무작위 문자열이 될 수 있으며, 외부에 유출되지 않도록 주의하세요. + - APP_KEY=your-secret-key + # 데이터베이스 유형. postgres, mysql, mariadb를 지원합니다. + - DB_DIALECT=mariadb + # 데이터베이스 호스트. 기존 데이터베이스 서버 IP로 대체할 수 있습니다. + - DB_HOST=mariadb + # 데이터베이스 포트 + - DB_PORT=3306 + # 데이터베이스 이름 + - DB_DATABASE=nocobase + # 데이터베이스 사용자 + - DB_USER=root + # 데이터베이스 비밀번호 + - DB_PASSWORD=nocobase + # 데이터베이스 테이블 및 필드 이름을 스네이크 케이스 스타일로 변환할지 여부 + - DB_UNDERSCORED=true + # 시간대. 필요에 따라 현지 시간대로 변경하세요. (예: Asia/Seoul) + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # 기존 데이터베이스 서비스를 사용하는 경우, mariadb를 시작하지 않아도 됩니다. + mariadb: + image: mariadb:11 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mariadb:/var/lib/mysql + networks: + - nocobase +``` + + + + + + + @@ -223,7 +405,7 @@ services: - + @@ -405,188 +587,6 @@ services: - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - postgres - environment: - # 애플리케이션 키. 사용자 토큰 등을 생성하는 데 사용됩니다. - # APP_KEY가 변경되면 이전 토큰도 무효화됩니다. - # 임의의 무작위 문자열이 될 수 있으며, 외부에 유출되지 않도록 주의하세요. - - APP_KEY=your-secret-key - # 데이터베이스 유형. postgres, mysql, mariadb를 지원합니다. - - DB_DIALECT=postgres - # 데이터베이스 호스트. 기존 데이터베이스 서버 IP로 대체할 수 있습니다. - - DB_HOST=postgres - # 데이터베이스 포트 - - DB_PORT=5432 - # 데이터베이스 이름 - - DB_DATABASE=nocobase - # 데이터베이스 사용자 - - DB_USER=nocobase - # 데이터베이스 비밀번호 - - DB_PASSWORD=nocobase - # 시간대. 필요에 따라 현지 시간대로 변경하세요. (예: Asia/Seoul) - - TZ=Asia/Shanghai - - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # 기존 데이터베이스 서비스를 사용하는 경우, postgres를 시작하지 않아도 됩니다. - postgres: - image: postgres:16 - restart: always - command: postgres -c wal_level=logical - environment: - POSTGRES_USER: nocobase - POSTGRES_DB: nocobase - POSTGRES_PASSWORD: nocobase - volumes: - - ./storage/db/postgres:/var/lib/postgresql/data - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mysql - environment: - # 애플리케이션 키. 사용자 토큰 등을 생성하는 데 사용됩니다. - # APP_KEY가 변경되면 이전 토큰도 무효화됩니다. - # 임의의 무작위 문자열이 될 수 있으며, 외부에 유출되지 않도록 주의하세요. - - APP_KEY=your-secret-key - # 데이터베이스 유형. postgres, mysql, mariadb를 지원합니다. - - DB_DIALECT=mysql - # 데이터베이스 호스트. 기존 데이터베이스 서버 IP로 대체할 수 있습니다. - - DB_HOST=mysql - # 데이터베이스 포트 - - DB_PORT=3306 - # 데이터베이스 이름 - - DB_DATABASE=nocobase - # 데이터베이스 사용자 - - DB_USER=root - # 데이터베이스 비밀번호 - - DB_PASSWORD=nocobase - # 데이터베이스 테이블 및 필드 이름을 스네이크 케이스 스타일로 변환할지 여부 - - DB_UNDERSCORED=true - # 시간대. 필요에 따라 현지 시간대로 변경하세요. (예: Asia/Seoul) - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # 기존 데이터베이스 서비스를 사용하는 경우, mysql을 시작하지 않아도 됩니다. - mysql: - image: mysql:8 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mysql:/var/lib/mysql - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mariadb - environment: - # 애플리케이션 키. 사용자 토큰 등을 생성하는 데 사용됩니다. - # APP_KEY가 변경되면 이전 토큰도 무효화됩니다. - # 임의의 무작위 문자열이 될 수 있으며, 외부에 유출되지 않도록 주의하세요. - - APP_KEY=your-secret-key - # 데이터베이스 유형. postgres, mysql, mariadb를 지원합니다. - - DB_DIALECT=mariadb - # 데이터베이스 호스트. 기존 데이터베이스 서버 IP로 대체할 수 있습니다. - - DB_HOST=mariadb - # 데이터베이스 포트 - - DB_PORT=3306 - # 데이터베이스 이름 - - DB_DATABASE=nocobase - # 데이터베이스 사용자 - - DB_USER=root - # 데이터베이스 비밀번호 - - DB_PASSWORD=nocobase - # 데이터베이스 테이블 및 필드 이름을 스네이크 케이스 스타일로 변환할지 여부 - - DB_UNDERSCORED=true - # 시간대. 필요에 따라 현지 시간대로 변경하세요. (예: Asia/Seoul) - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # 기존 데이터베이스 서비스를 사용하는 경우, mariadb를 시작하지 않아도 됩니다. - mariadb: - image: mariadb:11 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mariadb:/var/lib/mysql - networks: - - nocobase -``` - - - - - - ## 3. NocoBase 설치 및 시작 diff --git a/docs/docs/ko/get-started/installation/git.mdx b/docs/docs/ko/get-started/installation/git.mdx index 46df680c770..ed76c07049c 100644 --- a/docs/docs/ko/get-started/installation/git.mdx +++ b/docs/docs/ko/get-started/installation/git.mdx @@ -23,26 +23,26 @@ $ yarn config set registry https://registry.npmmirror.com/ NocoBase 버전을 선택하고([버전 비교](../quickstart.md)) 해당 명령을 실행하세요. - + + +```bash +git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase +``` + + + ```bash git clone https://github.com/nocobase/nocobase.git -b next --depth=1 my-nocobase ``` - + ```bash git clone https://github.com/nocobase/nocobase.git -b develop --depth=1 my-nocobase ``` - - - -```bash -git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase -``` - diff --git a/docs/docs/nl/get-started/installation/create-nocobase-app.mdx b/docs/docs/nl/get-started/installation/create-nocobase-app.mdx index bcd3a158d8d..23c418e24d5 100644 --- a/docs/docs/nl/get-started/installation/create-nocobase-app.mdx +++ b/docs/docs/nl/get-started/installation/create-nocobase-app.mdx @@ -23,7 +23,55 @@ Kies de NocoBase-versie ([Versieoverzicht](../quickstart.md)) en het databasetyp - + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d postgres \ + -e DB_HOST=localhost \ + -e DB_PORT=5432 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mysql \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mariadb \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + + + @@ -71,7 +119,7 @@ npx create-nocobase-app@beta my-nocobase-app -d mariadb \ - + @@ -119,54 +167,6 @@ npx create-nocobase-app@alpha my-nocobase-app -d mariadb \ - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d postgres \ - -e DB_HOST=localhost \ - -e DB_PORT=5432 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mysql \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mariadb \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - - :::warning Omgevingsvariabelen diff --git a/docs/docs/nl/get-started/installation/docker.mdx b/docs/docs/nl/get-started/installation/docker.mdx index 9537ca38101..eac653bb2e2 100644 --- a/docs/docs/nl/get-started/installation/docker.mdx +++ b/docs/docs/nl/get-started/installation/docker.mdx @@ -42,7 +42,189 @@ Kies een NocoBase-versie ([Versieoverzicht](../quickstart.md)) en databasetype, - + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - postgres + environment: + # De sleutel van de applicatie, gebruikt voor het genereren van gebruikerstokens, etc. + # Als de APP_KEY wordt gewijzigd, worden oude tokens ongeldig. + # Kan elke willekeurige tekenreeks zijn, en zorg ervoor dat deze niet uitlekt. + - APP_KEY=your-secret-key + # Databasetype, ondersteunt postgres, mysql, mariadb + - DB_DIALECT=postgres + # Databasehost, kan worden vervangen door een bestaand databaseserver-IP. + - DB_HOST=postgres + # Databasepoort + - DB_PORT=5432 + # Databasenaam + - DB_DATABASE=nocobase + # Databasegebruiker + - DB_USER=nocobase + # Databasewachtwoord + - DB_PASSWORD=nocobase + # Tijdzone + - TZ=Asia/Shanghai + + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Als u een bestaande databaseservice gebruikt, hoeft u postgres niet te starten. + postgres: + image: postgres:16 + restart: always + command: postgres -c wal_level=logical + environment: + POSTGRES_USER: nocobase + POSTGRES_DB: nocobase + POSTGRES_PASSWORD: nocobase + volumes: + - ./storage/db/postgres:/var/lib/postgresql/data + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mysql + environment: + # De sleutel van de applicatie, gebruikt voor het genereren van gebruikerstokens, etc. + # Als de APP_KEY wordt gewijzigd, worden oude tokens ongeldig. + # Kan elke willekeurige tekenreeks zijn, en zorg ervoor dat deze niet uitlekt. + - APP_KEY=your-secret-key + # Databasetype, ondersteunt postgres, mysql, mariadb + - DB_DIALECT=mysql + # Databasehost, kan worden vervangen door een bestaand databaseserver-IP. + - DB_HOST=mysql + # Databasepoort + - DB_PORT=3306 + # Databasenaam + - DB_DATABASE=nocobase + # Databasegebruiker + - DB_USER=root + # Databasewachtwoord + - DB_PASSWORD=nocobase + # Of databasetabel- en veldnamen moeten worden omgezet naar snake_case-stijl. + - DB_UNDERSCORED=true + # Tijdzone + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Als u een bestaande databaseservice gebruikt, hoeft u mysql niet te starten. + mysql: + image: mysql:8 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mysql:/var/lib/mysql + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mariadb + environment: + # De sleutel van de applicatie, gebruikt voor het genereren van gebruikerstokens, etc. + # Als de APP_KEY wordt gewijzigd, worden oude tokens ongeldig. + # Kan elke willekeurige tekenreeks zijn, en zorg ervoor dat deze niet uitlekt. + - APP_KEY=your-secret-key + # Databasetype, ondersteunt postgres, mysql, mariadb + - DB_DIALECT=mariadb + # Databasehost, kan worden vervangen door een bestaand databaseserver-IP. + - DB_HOST=mariadb + # Databasepoort + - DB_PORT=3306 + # Databasenaam + - DB_DATABASE=nocobase + # Databasegebruiker + - DB_USER=root + # Databasewachtwoord + - DB_PASSWORD=nocobase + # Of databasetabel- en veldnamen moeten worden omgezet naar snake_case-stijl. + - DB_UNDERSCORED=true + # Tijdzone + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Als u een bestaande databaseservice gebruikt, hoeft u mariadb niet te starten. + mariadb: + image: mariadb:11 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mariadb:/var/lib/mysql + networks: + - nocobase +``` + + + + + + + @@ -224,7 +406,7 @@ services: - + @@ -406,188 +588,6 @@ services: - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - postgres - environment: - # De sleutel van de applicatie, gebruikt voor het genereren van gebruikerstokens, etc. - # Als de APP_KEY wordt gewijzigd, worden oude tokens ongeldig. - # Kan elke willekeurige tekenreeks zijn, en zorg ervoor dat deze niet uitlekt. - - APP_KEY=your-secret-key - # Databasetype, ondersteunt postgres, mysql, mariadb - - DB_DIALECT=postgres - # Databasehost, kan worden vervangen door een bestaand databaseserver-IP. - - DB_HOST=postgres - # Databasepoort - - DB_PORT=5432 - # Databasenaam - - DB_DATABASE=nocobase - # Databasegebruiker - - DB_USER=nocobase - # Databasewachtwoord - - DB_PASSWORD=nocobase - # Tijdzone - - TZ=Asia/Shanghai - - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Als u een bestaande databaseservice gebruikt, hoeft u postgres niet te starten. - postgres: - image: postgres:16 - restart: always - command: postgres -c wal_level=logical - environment: - POSTGRES_USER: nocobase - POSTGRES_DB: nocobase - POSTGRES_PASSWORD: nocobase - volumes: - - ./storage/db/postgres:/var/lib/postgresql/data - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mysql - environment: - # De sleutel van de applicatie, gebruikt voor het genereren van gebruikerstokens, etc. - # Als de APP_KEY wordt gewijzigd, worden oude tokens ongeldig. - # Kan elke willekeurige tekenreeks zijn, en zorg ervoor dat deze niet uitlekt. - - APP_KEY=your-secret-key - # Databasetype, ondersteunt postgres, mysql, mariadb - - DB_DIALECT=mysql - # Databasehost, kan worden vervangen door een bestaand databaseserver-IP. - - DB_HOST=mysql - # Databasepoort - - DB_PORT=3306 - # Databasenaam - - DB_DATABASE=nocobase - # Databasegebruiker - - DB_USER=root - # Databasewachtwoord - - DB_PASSWORD=nocobase - # Of databasetabel- en veldnamen moeten worden omgezet naar snake_case-stijl. - - DB_UNDERSCORED=true - # Tijdzone - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Als u een bestaande databaseservice gebruikt, hoeft u mysql niet te starten. - mysql: - image: mysql:8 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mysql:/var/lib/mysql - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mariadb - environment: - # De sleutel van de applicatie, gebruikt voor het genereren van gebruikerstokens, etc. - # Als de APP_KEY wordt gewijzigd, worden oude tokens ongeldig. - # Kan elke willekeurige tekenreeks zijn, en zorg ervoor dat deze niet uitlekt. - - APP_KEY=your-secret-key - # Databasetype, ondersteunt postgres, mysql, mariadb - - DB_DIALECT=mariadb - # Databasehost, kan worden vervangen door een bestaand databaseserver-IP. - - DB_HOST=mariadb - # Databasepoort - - DB_PORT=3306 - # Databasenaam - - DB_DATABASE=nocobase - # Databasegebruiker - - DB_USER=root - # Databasewachtwoord - - DB_PASSWORD=nocobase - # Of databasetabel- en veldnamen moeten worden omgezet naar snake_case-stijl. - - DB_UNDERSCORED=true - # Tijdzone - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Als u een bestaande databaseservice gebruikt, hoeft u mariadb niet te starten. - mariadb: - image: mariadb:11 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mariadb:/var/lib/mysql - networks: - - nocobase -``` - - - - - - ## 3. NocoBase installeren en starten diff --git a/docs/docs/nl/get-started/installation/git.mdx b/docs/docs/nl/get-started/installation/git.mdx index 9e02f2170cc..23efee00930 100644 --- a/docs/docs/nl/get-started/installation/git.mdx +++ b/docs/docs/nl/get-started/installation/git.mdx @@ -17,26 +17,26 @@ Dit document is vertaald door AI. Voor onnauwkeurigheden, raadpleeg [de Engelse Kies een NocoBase-versie ([Versieoverzicht](../quickstart.md)) en voer de bijbehorende opdracht uit. - + + +```bash +git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase +``` + + + ```bash git clone https://github.com/nocobase/nocobase.git -b next --depth=1 my-nocobase ``` - + ```bash git clone https://github.com/nocobase/nocobase.git -b develop --depth=1 my-nocobase ``` - - - -```bash -git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase -``` - diff --git a/docs/docs/pl/get-started/installation/create-nocobase-app.mdx b/docs/docs/pl/get-started/installation/create-nocobase-app.mdx index 287f4483d64..70d8bd3c38b 100644 --- a/docs/docs/pl/get-started/installation/create-nocobase-app.mdx +++ b/docs/docs/pl/get-started/installation/create-nocobase-app.mdx @@ -24,7 +24,55 @@ Proszę wybrać wersję NocoBase ([Porównanie wersji](../quickstart.md)) oraz t - + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d postgres \ + -e DB_HOST=localhost \ + -e DB_PORT=5432 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mysql \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mariadb \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + + + @@ -72,7 +120,7 @@ npx create-nocobase-app@beta my-nocobase-app -d mariadb \ - + @@ -120,54 +168,6 @@ npx create-nocobase-app@alpha my-nocobase-app -d mariadb \ - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d postgres \ - -e DB_HOST=localhost \ - -e DB_PORT=5432 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mysql \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mariadb \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - - :::warning Zmienne środowiskowe diff --git a/docs/docs/pl/get-started/installation/docker.mdx b/docs/docs/pl/get-started/installation/docker.mdx index b507de8c2a1..71ab9227bb2 100644 --- a/docs/docs/pl/get-started/installation/docker.mdx +++ b/docs/docs/pl/get-started/installation/docker.mdx @@ -42,7 +42,189 @@ Proszę wybrać wersję NocoBase ([Porównanie wersji](../quickstart.md)) oraz t - + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - postgres + environment: + # Klucz aplikacji, używany do generowania tokenów użytkowników itp. + # Jeśli APP_KEY zostanie zmieniony, stare tokeny staną się nieważne. + # Może to być dowolny losowy ciąg znaków; proszę upewnić się, że nie zostanie ujawniony. + - APP_KEY=your-secret-key + # Typ bazy danych, obsługuje postgres, mysql, mariadb + - DB_DIALECT=postgres + # Host bazy danych, można zastąpić istniejącym adresem IP serwera bazy danych. + - DB_HOST=postgres + # Port bazy danych + - DB_PORT=5432 + # Nazwa bazy danych + - DB_DATABASE=nocobase + # Użytkownik bazy danych + - DB_USER=nocobase + # Hasło bazy danych + - DB_PASSWORD=nocobase + # Strefa czasowa + - TZ=Asia/Shanghai + + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Jeśli używają Państwo istniejącej usługi bazy danych, można pominąć uruchamianie postgres. + postgres: + image: postgres:16 + restart: always + command: postgres -c wal_level=logical + environment: + POSTGRES_USER: nocobase + POSTGRES_DB: nocobase + POSTGRES_PASSWORD: nocobase + volumes: + - ./storage/db/postgres:/var/lib/postgresql/data + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mysql + environment: + # Klucz aplikacji, używany do generowania tokenów użytkowników itp. + # Jeśli APP_KEY zostanie zmieniony, stare tokeny staną się nieważne. + # Może to być dowolny losowy ciąg znaków; proszę upewnić się, że nie zostanie ujawniony. + - APP_KEY=your-secret-key + # Typ bazy danych, obsługuje postgres, mysql, mariadb + - DB_DIALECT=mysql + # Host bazy danych, można zastąpić istniejącym adresem IP serwera bazy danych. + - DB_HOST=mysql + # Port bazy danych + - DB_PORT=3306 + # Nazwa bazy danych + - DB_DATABASE=nocobase + # Użytkownik bazy danych + - DB_USER=root + # Hasło bazy danych + - DB_PASSWORD=nocobase + # Czy nazwy tabel i pól mają być konwertowane na styl snake_case? + - DB_UNDERSCORED=true + # Strefa czasowa + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Jeśli używają Państwo istniejącej usługi bazy danych, można pominąć uruchamianie mysql. + mysql: + image: mysql:8 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mysql:/var/lib/mysql + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mariadb + environment: + # Klucz aplikacji, używany do generowania tokenów użytkowników itp. + # Jeśli APP_KEY zostanie zmieniony, stare tokeny staną się nieważne. + # Może to być dowolny losowy ciąg znaków; proszę upewnić się, że nie zostanie ujawniony. + - APP_KEY=your-secret-key + # Typ bazy danych, obsługuje postgres, mysql, mariadb + - DB_DIALECT=mariadb + # Host bazy danych, można zastąpić istniejącym adresem IP serwera bazy danych. + - DB_HOST=mariadb + # Port bazy danych + - DB_PORT=3306 + # Nazwa bazy danych + - DB_DATABASE=nocobase + # Użytkownik bazy danych + - DB_USER=root + # Hasło bazy danych + - DB_PASSWORD=nocobase + # Czy nazwy tabel i pól mają być konwertowane na styl snake_case? + - DB_UNDERSCORED=true + # Strefa czasowa + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Jeśli używają Państwo istniejącej usługi bazy danych, można pominąć uruchamianie mariadb. + mariadb: + image: mariadb:11 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mariadb:/var/lib/mysql + networks: + - nocobase +``` + + + + + + + @@ -224,7 +406,7 @@ services: - + @@ -406,188 +588,6 @@ services: - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - postgres - environment: - # Klucz aplikacji, używany do generowania tokenów użytkowników itp. - # Jeśli APP_KEY zostanie zmieniony, stare tokeny staną się nieważne. - # Może to być dowolny losowy ciąg znaków; proszę upewnić się, że nie zostanie ujawniony. - - APP_KEY=your-secret-key - # Typ bazy danych, obsługuje postgres, mysql, mariadb - - DB_DIALECT=postgres - # Host bazy danych, można zastąpić istniejącym adresem IP serwera bazy danych. - - DB_HOST=postgres - # Port bazy danych - - DB_PORT=5432 - # Nazwa bazy danych - - DB_DATABASE=nocobase - # Użytkownik bazy danych - - DB_USER=nocobase - # Hasło bazy danych - - DB_PASSWORD=nocobase - # Strefa czasowa - - TZ=Asia/Shanghai - - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Jeśli używają Państwo istniejącej usługi bazy danych, można pominąć uruchamianie postgres. - postgres: - image: postgres:16 - restart: always - command: postgres -c wal_level=logical - environment: - POSTGRES_USER: nocobase - POSTGRES_DB: nocobase - POSTGRES_PASSWORD: nocobase - volumes: - - ./storage/db/postgres:/var/lib/postgresql/data - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mysql - environment: - # Klucz aplikacji, używany do generowania tokenów użytkowników itp. - # Jeśli APP_KEY zostanie zmieniony, stare tokeny staną się nieważne. - # Może to być dowolny losowy ciąg znaków; proszę upewnić się, że nie zostanie ujawniony. - - APP_KEY=your-secret-key - # Typ bazy danych, obsługuje postgres, mysql, mariadb - - DB_DIALECT=mysql - # Host bazy danych, można zastąpić istniejącym adresem IP serwera bazy danych. - - DB_HOST=mysql - # Port bazy danych - - DB_PORT=3306 - # Nazwa bazy danych - - DB_DATABASE=nocobase - # Użytkownik bazy danych - - DB_USER=root - # Hasło bazy danych - - DB_PASSWORD=nocobase - # Czy nazwy tabel i pól mają być konwertowane na styl snake_case? - - DB_UNDERSCORED=true - # Strefa czasowa - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Jeśli używają Państwo istniejącej usługi bazy danych, można pominąć uruchamianie mysql. - mysql: - image: mysql:8 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mysql:/var/lib/mysql - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mariadb - environment: - # Klucz aplikacji, używany do generowania tokenów użytkowników itp. - # Jeśli APP_KEY zostanie zmieniony, stare tokeny staną się nieważne. - # Może to być dowolny losowy ciąg znaków; proszę upewnić się, że nie zostanie ujawniony. - - APP_KEY=your-secret-key - # Typ bazy danych, obsługuje postgres, mysql, mariadb - - DB_DIALECT=mariadb - # Host bazy danych, można zastąpić istniejącym adresem IP serwera bazy danych. - - DB_HOST=mariadb - # Port bazy danych - - DB_PORT=3306 - # Nazwa bazy danych - - DB_DATABASE=nocobase - # Użytkownik bazy danych - - DB_USER=root - # Hasło bazy danych - - DB_PASSWORD=nocobase - # Czy nazwy tabel i pól mają być konwertowane na styl snake_case? - - DB_UNDERSCORED=true - # Strefa czasowa - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Jeśli używają Państwo istniejącej usługi bazy danych, można pominąć uruchamianie mariadb. - mariadb: - image: mariadb:11 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mariadb:/var/lib/mysql - networks: - - nocobase -``` - - - - - - diff --git a/docs/docs/pl/get-started/installation/git.mdx b/docs/docs/pl/get-started/installation/git.mdx index 5c052b7c2e8..4c48b36336a 100644 --- a/docs/docs/pl/get-started/installation/git.mdx +++ b/docs/docs/pl/get-started/installation/git.mdx @@ -23,26 +23,26 @@ $ yarn config set registry https://registry.npmmirror.com/ Proszę wybrać wersję NocoBase ([Porównanie wersji](../quickstart.md)) i wykonać odpowiednie polecenie. - + + +```bash +git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase +``` + + + ```bash git clone https://github.com/nocobase/nocobase.git -b next --depth=1 my-nocobase ``` - + ```bash git clone https://github.com/nocobase/nocobase.git -b develop --depth=1 my-nocobase ``` - - - -```bash -git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase -``` - diff --git a/docs/docs/pt/get-started/installation/create-nocobase-app.mdx b/docs/docs/pt/get-started/installation/create-nocobase-app.mdx index bac3234328a..b3a284ba17f 100644 --- a/docs/docs/pt/get-started/installation/create-nocobase-app.mdx +++ b/docs/docs/pt/get-started/installation/create-nocobase-app.mdx @@ -18,7 +18,55 @@ Escolha a versão do NocoBase ([Comparação de Versões](../quickstart.md)) e o - + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d postgres \ + -e DB_HOST=localhost \ + -e DB_PORT=5432 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mysql \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mariadb \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + + + @@ -66,7 +114,7 @@ npx create-nocobase-app@beta my-nocobase-app -d mariadb \ - + @@ -114,54 +162,6 @@ npx create-nocobase-app@alpha my-nocobase-app -d mariadb \ - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d postgres \ - -e DB_HOST=localhost \ - -e DB_PORT=5432 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mysql \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mariadb \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - - :::warning Variáveis de Ambiente diff --git a/docs/docs/pt/get-started/installation/docker.mdx b/docs/docs/pt/get-started/installation/docker.mdx index 27ee8d54411..9ee96bd73a9 100644 --- a/docs/docs/pt/get-started/installation/docker.mdx +++ b/docs/docs/pt/get-started/installation/docker.mdx @@ -42,7 +42,189 @@ Escolha uma versão do NocoBase ([Comparativo de Versões](../quickstart.md)) e - + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - postgres + environment: + # Chave da aplicação, usada para gerar tokens de usuário, etc. + # Se a APP_KEY for alterada, os tokens antigos se tornarão inválidos. + # Pode ser qualquer string aleatória, e certifique-se de que não seja vazada. + - APP_KEY=your-secret-key + # Tipo de banco de dados, suporta postgres, mysql, mariadb + - DB_DIALECT=postgres + # Host do banco de dados, pode ser substituído pelo IP de um servidor de banco de dados existente. + - DB_HOST=postgres + # Porta do banco de dados + - DB_PORT=5432 + # Nome do banco de dados + - DB_DATABASE=nocobase + # Usuário do banco de dados + - DB_USER=nocobase + # Senha do banco de dados + - DB_PASSWORD=nocobase + # Fuso horário, por favor, altere para o seu fuso horário local, por exemplo, America/Sao_Paulo + - TZ=Etc/UTC + + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Se você usar um serviço de banco de dados existente, pode optar por não iniciar o postgres. + postgres: + image: postgres:16 + restart: always + command: postgres -c wal_level=logical + environment: + POSTGRES_USER: nocobase + POSTGRES_DB: nocobase + POSTGRES_PASSWORD: nocobase + volumes: + - ./storage/db/postgres:/var/lib/postgresql/data + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mysql + environment: + # Chave da aplicação, usada para gerar tokens de usuário, etc. + # Se a APP_KEY for alterada, os tokens antigos se tornarão inválidos. + # Pode ser qualquer string aleatória, e certifique-se de que não seja vazada. + - APP_KEY=your-secret-key + # Tipo de banco de dados, suporta postgres, mysql, mariadb + - DB_DIALECT=mysql + # Host do banco de dados, pode ser substituído pelo IP de um servidor de banco de dados existente. + - DB_HOST=mysql + # Porta do banco de dados + - DB_PORT=3306 + # Nome do banco de dados + - DB_DATABASE=nocobase + # Usuário do banco de dados + - DB_USER=root + # Senha do banco de dados + - DB_PASSWORD=nocobase + # Se os nomes das tabelas e campos devem ser convertidos para o estilo snake_case. + - DB_UNDERSCORED=true + # Fuso horário, por favor, altere para o seu fuso horário local, por exemplo, America/Sao_Paulo + - TZ=Etc/UTC + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Se você usar um serviço de banco de dados existente, pode optar por não iniciar o mysql. + mysql: + image: mysql:8 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mysql:/var/lib/mysql + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mariadb + environment: + # Chave da aplicação, usada para gerar tokens de usuário, etc. + # Se a APP_KEY for alterada, os tokens antigos se tornarão inválidos. + # Pode ser qualquer string aleatória, e certifique-se de que não seja vazada. + - APP_KEY=your-secret-key + # Tipo de banco de dados, suporta postgres, mysql, mariadb + - DB_DIALECT=mariadb + # Host do banco de dados, pode ser substituído pelo IP de um servidor de banco de dados existente. + - DB_HOST=mariadb + # Porta do banco de dados + - DB_PORT=3306 + # Nome do banco de dados + - DB_DATABASE=nocobase + # Usuário do banco de dados + - DB_USER=root + # Senha do banco de dados + - DB_PASSWORD=nocobase + # Se os nomes das tabelas e campos devem ser convertidos para o estilo snake_case. + - DB_UNDERSCORED=true + # Fuso horário, por favor, altere para o seu fuso horário local, por exemplo, America/Sao_Paulo + - TZ=Etc/UTC + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Se você usar um serviço de banco de dados existente, pode optar por não iniciar o mariadb. + mariadb: + image: mariadb:11 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mariadb:/var/lib/mysql + networks: + - nocobase +``` + + + + + + + @@ -224,7 +406,7 @@ services: - + @@ -406,188 +588,6 @@ services: - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - postgres - environment: - # Chave da aplicação, usada para gerar tokens de usuário, etc. - # Se a APP_KEY for alterada, os tokens antigos se tornarão inválidos. - # Pode ser qualquer string aleatória, e certifique-se de que não seja vazada. - - APP_KEY=your-secret-key - # Tipo de banco de dados, suporta postgres, mysql, mariadb - - DB_DIALECT=postgres - # Host do banco de dados, pode ser substituído pelo IP de um servidor de banco de dados existente. - - DB_HOST=postgres - # Porta do banco de dados - - DB_PORT=5432 - # Nome do banco de dados - - DB_DATABASE=nocobase - # Usuário do banco de dados - - DB_USER=nocobase - # Senha do banco de dados - - DB_PASSWORD=nocobase - # Fuso horário, por favor, altere para o seu fuso horário local, por exemplo, America/Sao_Paulo - - TZ=Etc/UTC - - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Se você usar um serviço de banco de dados existente, pode optar por não iniciar o postgres. - postgres: - image: postgres:16 - restart: always - command: postgres -c wal_level=logical - environment: - POSTGRES_USER: nocobase - POSTGRES_DB: nocobase - POSTGRES_PASSWORD: nocobase - volumes: - - ./storage/db/postgres:/var/lib/postgresql/data - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mysql - environment: - # Chave da aplicação, usada para gerar tokens de usuário, etc. - # Se a APP_KEY for alterada, os tokens antigos se tornarão inválidos. - # Pode ser qualquer string aleatória, e certifique-se de que não seja vazada. - - APP_KEY=your-secret-key - # Tipo de banco de dados, suporta postgres, mysql, mariadb - - DB_DIALECT=mysql - # Host do banco de dados, pode ser substituído pelo IP de um servidor de banco de dados existente. - - DB_HOST=mysql - # Porta do banco de dados - - DB_PORT=3306 - # Nome do banco de dados - - DB_DATABASE=nocobase - # Usuário do banco de dados - - DB_USER=root - # Senha do banco de dados - - DB_PASSWORD=nocobase - # Se os nomes das tabelas e campos devem ser convertidos para o estilo snake_case. - - DB_UNDERSCORED=true - # Fuso horário, por favor, altere para o seu fuso horário local, por exemplo, America/Sao_Paulo - - TZ=Etc/UTC - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Se você usar um serviço de banco de dados existente, pode optar por não iniciar o mysql. - mysql: - image: mysql:8 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mysql:/var/lib/mysql - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mariadb - environment: - # Chave da aplicação, usada para gerar tokens de usuário, etc. - # Se a APP_KEY for alterada, os tokens antigos se tornarão inválidos. - # Pode ser qualquer string aleatória, e certifique-se de que não seja vazada. - - APP_KEY=your-secret-key - # Tipo de banco de dados, suporta postgres, mysql, mariadb - - DB_DIALECT=mariadb - # Host do banco de dados, pode ser substituído pelo IP de um servidor de banco de dados existente. - - DB_HOST=mariadb - # Porta do banco de dados - - DB_PORT=3306 - # Nome do banco de dados - - DB_DATABASE=nocobase - # Usuário do banco de dados - - DB_USER=root - # Senha do banco de dados - - DB_PASSWORD=nocobase - # Se os nomes das tabelas e campos devem ser convertidos para o estilo snake_case. - - DB_UNDERSCORED=true - # Fuso horário, por favor, altere para o seu fuso horário local, por exemplo, America/Sao_Paulo - - TZ=Etc/UTC - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Se você usar um serviço de banco de dados existente, pode optar por não iniciar o mariadb. - mariadb: - image: mariadb:11 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mariadb:/var/lib/mysql - networks: - - nocobase -``` - - - - - - diff --git a/docs/docs/pt/get-started/installation/git.mdx b/docs/docs/pt/get-started/installation/git.mdx index 18a56daac1c..885091a2010 100644 --- a/docs/docs/pt/get-started/installation/git.mdx +++ b/docs/docs/pt/get-started/installation/git.mdx @@ -17,26 +17,26 @@ Esta documentação foi traduzida automaticamente por IA. Escolha uma versão do NocoBase ([Comparação de Versões](../quickstart.md)) e execute o comando correspondente. - + + +```bash +git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase +``` + + + ```bash git clone https://github.com/nocobase/nocobase.git -b next --depth=1 my-nocobase ``` - + ```bash git clone https://github.com/nocobase/nocobase.git -b develop --depth=1 my-nocobase ``` - - - -```bash -git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase -``` - diff --git a/docs/docs/ru/get-started/installation/create-nocobase-app.mdx b/docs/docs/ru/get-started/installation/create-nocobase-app.mdx index 60c8e9fe459..7084fb2e7b5 100644 --- a/docs/docs/ru/get-started/installation/create-nocobase-app.mdx +++ b/docs/docs/ru/get-started/installation/create-nocobase-app.mdx @@ -24,7 +24,55 @@ $ yarn config set registry https://registry.npmmirror.com/ - + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d postgres \ + -e DB_HOST=localhost \ + -e DB_PORT=5432 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mysql \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mariadb \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + + + @@ -72,7 +120,7 @@ npx create-nocobase-app@beta my-nocobase-app -d mariadb \ - + @@ -120,54 +168,6 @@ npx create-nocobase-app@alpha my-nocobase-app -d mariadb \ - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d postgres \ - -e DB_HOST=localhost \ - -e DB_PORT=5432 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mysql \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mariadb \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - - :::warning Переменные среды diff --git a/docs/docs/ru/get-started/installation/docker.mdx b/docs/docs/ru/get-started/installation/docker.mdx index 2ead7ee7825..b6310c93fe0 100644 --- a/docs/docs/ru/get-started/installation/docker.mdx +++ b/docs/docs/ru/get-started/installation/docker.mdx @@ -42,7 +42,189 @@ vi docker-compose.yml - + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - postgres + environment: + # Ключ приложения, используемый для генерации токенов пользователей и т.д. + # Если APP_KEY будет изменен, старые токены станут недействительными + # Может быть любой случайной строкой, убедитесь, что она не будет раскрыта + - APP_KEY=your-secret-key + # Тип базы данных, поддерживает postgres, mysql, mariadb + - DB_DIALECT=postgres + # Хост базы данных, можно заменить на IP существующего сервера базы данных + - DB_HOST=postgres + # Порт базы данных + - DB_PORT=5432 + # Имя базы данных + - DB_DATABASE=nocobase + # Пользователь базы данных + - DB_USER=nocobase + # Пароль базы данных + - DB_PASSWORD=nocobase + # Часовой пояс, измените его на ваш локальный часовой пояс, например, Europe/Moscow + - TZ=Asia/Shanghai + + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Если вы используете существующую службу базы данных, вы можете не запускать postgres + postgres: + image: postgres:16 + restart: always + command: postgres -c wal_level=logical + environment: + POSTGRES_USER: nocobase + POSTGRES_DB: nocobase + POSTGRES_PASSWORD: nocobase + volumes: + - ./storage/db/postgres:/var/lib/postgresql/data + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mysql + environment: + # Ключ приложения, используемый для генерации токенов пользователей и т.д. + # Если APP_KEY будет изменен, старые токены станут недействительными + # Может быть любой случайной строкой, убедитесь, что она не будет раскрыта + - APP_KEY=your-secret-key + # Тип базы данных, поддерживает postgres, mysql, mariadb + - DB_DIALECT=mysql + # Хост базы данных, можно заменить на IP существующего сервера базы данных + - DB_HOST=mysql + # Порт базы данных + - DB_PORT=3306 + # Имя базы данных + - DB_DATABASE=nocobase + # Пользователь базы данных + - DB_USER=root + # Пароль базы данных + - DB_PASSWORD=nocobase + # Преобразовывать ли имена таблиц и полей базы данных в стиль snake_case + - DB_UNDERSCORED=true + # Часовой пояс, измените его на ваш локальный часовой пояс, например, Europe/Moscow + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Если вы используете существующую службу базы данных, вы можете не запускать mysql + mysql: + image: mysql:8 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mysql:/var/lib/mysql + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mariadb + environment: + # Ключ приложения, используемый для генерации токенов пользователей и т.д. + # Если APP_KEY будет изменен, старые токены станут недействительными + # Может быть любой случайной строкой, убедитесь, что она не будет раскрыта + - APP_KEY=your-secret-key + # Тип базы данных, поддерживает postgres, mysql, mariadb + - DB_DIALECT=mariadb + # Хост базы данных, можно заменить на IP существующего сервера базы данных + - DB_HOST=mariadb + # Порт базы данных + - DB_PORT=3306 + # Имя базы данных + - DB_DATABASE=nocobase + # Пользователь базы данных + - DB_USER=root + # Пароль базы данных + - DB_PASSWORD=nocobase + # Преобразовывать ли имена таблиц и полей базы данных в стиль snake_case + - DB_UNDERSCORED=true + # Часовой пояс, измените его на ваш локальный часовой пояс, например, Europe/Moscow + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Если вы используете существующую службу базы данных, вы можете не запускать mariadb + mariadb: + image: mariadb:11 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mariadb:/var/lib/mysql + networks: + - nocobase +``` + + + + + + + @@ -224,7 +406,7 @@ services: - + @@ -406,188 +588,6 @@ services: - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - postgres - environment: - # Ключ приложения, используемый для генерации токенов пользователей и т.д. - # Если APP_KEY будет изменен, старые токены станут недействительными - # Может быть любой случайной строкой, убедитесь, что она не будет раскрыта - - APP_KEY=your-secret-key - # Тип базы данных, поддерживает postgres, mysql, mariadb - - DB_DIALECT=postgres - # Хост базы данных, можно заменить на IP существующего сервера базы данных - - DB_HOST=postgres - # Порт базы данных - - DB_PORT=5432 - # Имя базы данных - - DB_DATABASE=nocobase - # Пользователь базы данных - - DB_USER=nocobase - # Пароль базы данных - - DB_PASSWORD=nocobase - # Часовой пояс, измените его на ваш локальный часовой пояс, например, Europe/Moscow - - TZ=Asia/Shanghai - - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Если вы используете существующую службу базы данных, вы можете не запускать postgres - postgres: - image: postgres:16 - restart: always - command: postgres -c wal_level=logical - environment: - POSTGRES_USER: nocobase - POSTGRES_DB: nocobase - POSTGRES_PASSWORD: nocobase - volumes: - - ./storage/db/postgres:/var/lib/postgresql/data - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mysql - environment: - # Ключ приложения, используемый для генерации токенов пользователей и т.д. - # Если APP_KEY будет изменен, старые токены станут недействительными - # Может быть любой случайной строкой, убедитесь, что она не будет раскрыта - - APP_KEY=your-secret-key - # Тип базы данных, поддерживает postgres, mysql, mariadb - - DB_DIALECT=mysql - # Хост базы данных, можно заменить на IP существующего сервера базы данных - - DB_HOST=mysql - # Порт базы данных - - DB_PORT=3306 - # Имя базы данных - - DB_DATABASE=nocobase - # Пользователь базы данных - - DB_USER=root - # Пароль базы данных - - DB_PASSWORD=nocobase - # Преобразовывать ли имена таблиц и полей базы данных в стиль snake_case - - DB_UNDERSCORED=true - # Часовой пояс, измените его на ваш локальный часовой пояс, например, Europe/Moscow - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Если вы используете существующую службу базы данных, вы можете не запускать mysql - mysql: - image: mysql:8 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mysql:/var/lib/mysql - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mariadb - environment: - # Ключ приложения, используемый для генерации токенов пользователей и т.д. - # Если APP_KEY будет изменен, старые токены станут недействительными - # Может быть любой случайной строкой, убедитесь, что она не будет раскрыта - - APP_KEY=your-secret-key - # Тип базы данных, поддерживает postgres, mysql, mariadb - - DB_DIALECT=mariadb - # Хост базы данных, можно заменить на IP существующего сервера базы данных - - DB_HOST=mariadb - # Порт базы данных - - DB_PORT=3306 - # Имя базы данных - - DB_DATABASE=nocobase - # Пользователь базы данных - - DB_USER=root - # Пароль базы данных - - DB_PASSWORD=nocobase - # Преобразовывать ли имена таблиц и полей базы данных в стиль snake_case - - DB_UNDERSCORED=true - # Часовой пояс, измените его на ваш локальный часовой пояс, например, Europe/Moscow - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Если вы используете существующую службу базы данных, вы можете не запускать mariadb - mariadb: - image: mariadb:11 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mariadb:/var/lib/mysql - networks: - - nocobase -``` - - - - - - ## 3. Установите и запустите NocoBase diff --git a/docs/docs/ru/get-started/installation/git.mdx b/docs/docs/ru/get-started/installation/git.mdx index 667c4fd0e31..c77f6bc7733 100644 --- a/docs/docs/ru/get-started/installation/git.mdx +++ b/docs/docs/ru/get-started/installation/git.mdx @@ -23,26 +23,26 @@ $ yarn config set registry https://registry.npmmirror.com/ Выберите версию NocoBase ([Сравнение версий](../quickstart.md)) и выполните соответствующую команду. - + + +```bash +git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase +``` + + + ```bash git clone https://github.com/nocobase/nocobase.git -b next --depth=1 my-nocobase ``` - + ```bash git clone https://github.com/nocobase/nocobase.git -b develop --depth=1 my-nocobase ``` - - - -```bash -git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase -``` - diff --git a/docs/docs/sv/get-started/installation/create-nocobase-app.mdx b/docs/docs/sv/get-started/installation/create-nocobase-app.mdx index cfb08d86a01..ed34e155a4c 100644 --- a/docs/docs/sv/get-started/installation/create-nocobase-app.mdx +++ b/docs/docs/sv/get-started/installation/create-nocobase-app.mdx @@ -18,7 +18,55 @@ Välj NocoBase-version ([Versionsjämförelse](../quickstart.md)) och databastyp - + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d postgres \ + -e DB_HOST=localhost \ + -e DB_PORT=5432 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mysql \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mariadb \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + + + @@ -66,7 +114,7 @@ npx create-nocobase-app@beta my-nocobase-app -d mariadb \ - + @@ -114,54 +162,6 @@ npx create-nocobase-app@alpha my-nocobase-app -d mariadb \ - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d postgres \ - -e DB_HOST=localhost \ - -e DB_PORT=5432 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mysql \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mariadb \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - - :::warning Miljövariabler diff --git a/docs/docs/sv/get-started/installation/docker.mdx b/docs/docs/sv/get-started/installation/docker.mdx index 8a2e90f4a3e..4cabbd12f88 100644 --- a/docs/docs/sv/get-started/installation/docker.mdx +++ b/docs/docs/sv/get-started/installation/docker.mdx @@ -42,7 +42,189 @@ Välj en NocoBase-version ([Versionsjämförelse](../quickstart.md)) och databas - + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - postgres + environment: + # Applikationsnyckel, används för att generera användartokens, etc. + # Om APP_KEY ändras blir gamla tokens ogiltiga. + # Kan vara vilken slumpmässig sträng som helst, se till att den inte läcker ut. + - APP_KEY=your-secret-key + # Databastyp, stöder postgres, mysql, mariadb + - DB_DIALECT=postgres + # Databasvärd, kan ersättas med en befintlig databasservers IP + - DB_HOST=postgres + # Databasport + - DB_PORT=5432 + # Databasnamn + - DB_DATABASE=nocobase + # Databasanvändare + - DB_USER=nocobase + # Databaslösenord + - DB_PASSWORD=nocobase + # Tidszon + - TZ=Asia/Shanghai + + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Om ni använder en befintlig databastjänst kan ni hoppa över att starta postgres + postgres: + image: postgres:16 + restart: always + command: postgres -c wal_level=logical + environment: + POSTGRES_USER: nocobase + POSTGRES_DB: nocobase + POSTGRES_PASSWORD: nocobase + volumes: + - ./storage/db/postgres:/var/lib/postgresql/data + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mysql + environment: + # Applikationsnyckel, används för att generera användartokens, etc. + # Om APP_KEY ändras blir gamla tokens ogiltiga. + # Kan vara vilken slumpmässig sträng som helst, se till att den inte läcker ut. + - APP_KEY=your-secret-key + # Databastyp, stöder postgres, mysql, mariadb + - DB_DIALECT=mysql + # Databasvärd, kan ersättas med en befintlig databasservers IP + - DB_HOST=mysql + # Databasport + - DB_PORT=3306 + # Databasnamn + - DB_DATABASE=nocobase + # Databasanvändare + - DB_USER=root + # Databaslösenord + - DB_PASSWORD=nocobase + # Om databastabell- och fältnamn ska konverteras till snake_case-stil + - DB_UNDERSCORED=true + # Tidszon + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Om ni använder en befintlig databastjänst kan ni hoppa över att starta mysql + mysql: + image: mysql:8 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mysql:/var/lib/mysql + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mariadb + environment: + # Applikationsnyckel, används för att generera användartokens, etc. + # Om APP_KEY ändras blir gamla tokens ogiltiga. + # Kan vara vilken slumpmässig sträng som helst, se till att den inte läcker ut. + - APP_KEY=your-secret-key + # Databastyp, stöder postgres, mysql, mariadb + - DB_DIALECT=mariadb + # Databasvärd, kan ersättas med en befintlig databasservers IP + - DB_HOST=mariadb + # Databasport + - DB_PORT=3306 + # Databasnamn + - DB_DATABASE=nocobase + # Databasanvändare + - DB_USER=root + # Databaslösenord + - DB_PASSWORD=nocobase + # Om databastabell- och fältnamn ska konverteras till snake_case-stil + - DB_UNDERSCORED=true + # Tidszon + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Om ni använder en befintlig databastjänst kan ni hoppa över att starta mariadb + mariadb: + image: mariadb:11 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mariadb:/var/lib/mysql + networks: + - nocobase +``` + + + + + + + @@ -224,7 +406,7 @@ services: - + @@ -406,188 +588,6 @@ services: - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - postgres - environment: - # Applikationsnyckel, används för att generera användartokens, etc. - # Om APP_KEY ändras blir gamla tokens ogiltiga. - # Kan vara vilken slumpmässig sträng som helst, se till att den inte läcker ut. - - APP_KEY=your-secret-key - # Databastyp, stöder postgres, mysql, mariadb - - DB_DIALECT=postgres - # Databasvärd, kan ersättas med en befintlig databasservers IP - - DB_HOST=postgres - # Databasport - - DB_PORT=5432 - # Databasnamn - - DB_DATABASE=nocobase - # Databasanvändare - - DB_USER=nocobase - # Databaslösenord - - DB_PASSWORD=nocobase - # Tidszon - - TZ=Asia/Shanghai - - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Om ni använder en befintlig databastjänst kan ni hoppa över att starta postgres - postgres: - image: postgres:16 - restart: always - command: postgres -c wal_level=logical - environment: - POSTGRES_USER: nocobase - POSTGRES_DB: nocobase - POSTGRES_PASSWORD: nocobase - volumes: - - ./storage/db/postgres:/var/lib/postgresql/data - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mysql - environment: - # Applikationsnyckel, används för att generera användartokens, etc. - # Om APP_KEY ändras blir gamla tokens ogiltiga. - # Kan vara vilken slumpmässig sträng som helst, se till att den inte läcker ut. - - APP_KEY=your-secret-key - # Databastyp, stöder postgres, mysql, mariadb - - DB_DIALECT=mysql - # Databasvärd, kan ersättas med en befintlig databasservers IP - - DB_HOST=mysql - # Databasport - - DB_PORT=3306 - # Databasnamn - - DB_DATABASE=nocobase - # Databasanvändare - - DB_USER=root - # Databaslösenord - - DB_PASSWORD=nocobase - # Om databastabell- och fältnamn ska konverteras till snake_case-stil - - DB_UNDERSCORED=true - # Tidszon - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Om ni använder en befintlig databastjänst kan ni hoppa över att starta mysql - mysql: - image: mysql:8 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mysql:/var/lib/mysql - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mariadb - environment: - # Applikationsnyckel, används för att generera användartokens, etc. - # Om APP_KEY ändras blir gamla tokens ogiltiga. - # Kan vara vilken slumpmässig sträng som helst, se till att den inte läcker ut. - - APP_KEY=your-secret-key - # Databastyp, stöder postgres, mysql, mariadb - - DB_DIALECT=mariadb - # Databasvärd, kan ersättas med en befintlig databasservers IP - - DB_HOST=mariadb - # Databasport - - DB_PORT=3306 - # Databasnamn - - DB_DATABASE=nocobase - # Databasanvändare - - DB_USER=root - # Databaslösenord - - DB_PASSWORD=nocobase - # Om databastabell- och fältnamn ska konverteras till snake_case-stil - - DB_UNDERSCORED=true - # Tidszon - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Om ni använder en befintlig databastjänst kan ni hoppa över att starta mariadb - mariadb: - image: mariadb:11 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mariadb:/var/lib/mysql - networks: - - nocobase -``` - - - - - - diff --git a/docs/docs/sv/get-started/installation/git.mdx b/docs/docs/sv/get-started/installation/git.mdx index 9a0a0121a07..07ab4646ddd 100644 --- a/docs/docs/sv/get-started/installation/git.mdx +++ b/docs/docs/sv/get-started/installation/git.mdx @@ -23,26 +23,26 @@ $ yarn config set registry https://registry.npmmirror.com/ Välj en NocoBase-version ([Versionsjämförelse](../quickstart.md)) och kör motsvarande kommando. - + + +```bash +git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase +``` + + + ```bash git clone https://github.com/nocobase/nocobase.git -b next --depth=1 my-nocobase ``` - + ```bash git clone https://github.com/nocobase/nocobase.git -b develop --depth=1 my-nocobase ``` - - - -```bash -git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase -``` - diff --git a/docs/docs/th/get-started/installation/create-nocobase-app.mdx b/docs/docs/th/get-started/installation/create-nocobase-app.mdx index b0888514a87..3ed129f8f16 100644 --- a/docs/docs/th/get-started/installation/create-nocobase-app.mdx +++ b/docs/docs/th/get-started/installation/create-nocobase-app.mdx @@ -24,7 +24,55 @@ $ yarn config set registry https://registry.npmmirror.com/ - + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d postgres \ + -e DB_HOST=localhost \ + -e DB_PORT=5432 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mysql \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mariadb \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + + + @@ -72,7 +120,7 @@ npx create-nocobase-app@beta my-nocobase-app -d mariadb \ - + @@ -120,54 +168,6 @@ npx create-nocobase-app@alpha my-nocobase-app -d mariadb \ - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d postgres \ - -e DB_HOST=localhost \ - -e DB_PORT=5432 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mysql \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mariadb \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - - :::warning คำอธิบายตัวแปรสภาพแวดล้อม diff --git a/docs/docs/th/get-started/installation/docker.mdx b/docs/docs/th/get-started/installation/docker.mdx index ec5d170165e..3cf97521d75 100644 --- a/docs/docs/th/get-started/installation/docker.mdx +++ b/docs/docs/th/get-started/installation/docker.mdx @@ -42,7 +42,189 @@ vi docker-compose.yml - + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - postgres + environment: + # คีย์ของแอปพลิเคชัน ใช้สำหรับสร้างโทเค็นของผู้ใช้ เป็นต้น + # หาก APP_KEY ถูกแก้ไข โทเค็นเก่าก็จะใช้งานไม่ได้ครับ/ค่ะ + # สามารถเป็นสตริงแบบสุ่มใด ๆ ก็ได้ และต้องแน่ใจว่าจะไม่รั่วไหลออกไปภายนอกครับ/ค่ะ + - APP_KEY=your-secret-key + # ชนิดของฐานข้อมูลที่รองรับ: postgres, mysql, mariadb + - DB_DIALECT=postgres + # โฮสต์ของฐานข้อมูล สามารถแทนที่ด้วย IP ของเซิร์ฟเวอร์ฐานข้อมูลที่มีอยู่แล้วได้ครับ/ค่ะ + - DB_HOST=postgres + # พอร์ตของฐานข้อมูล + - DB_PORT=5432 + # ชื่อฐานข้อมูล + - DB_DATABASE=nocobase + # ผู้ใช้ฐานข้อมูล + - DB_USER=nocobase + # รหัสผ่านฐานข้อมูล + - DB_PASSWORD=nocobase + # เขตเวลา + - TZ=Asia/Shanghai + + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # หากคุณใช้บริการฐานข้อมูลที่มีอยู่แล้ว คุณสามารถเลือกที่จะไม่รัน postgres ได้ครับ/ค่ะ + postgres: + image: postgres:16 + restart: always + command: postgres -c wal_level=logical + environment: + POSTGRES_USER: nocobase + POSTGRES_DB: nocobase + POSTGRES_PASSWORD: nocobase + volumes: + - ./storage/db/postgres:/var/lib/postgresql/data + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mysql + environment: + # คีย์ของแอปพลิเคชัน ใช้สำหรับสร้างโทเค็นของผู้ใช้ เป็นต้น + # หาก APP_KEY ถูกแก้ไข โทเค็นเก่าก็จะใช้งานไม่ได้ครับ/ค่ะ + # สามารถเป็นสตริงแบบสุ่มใด ๆ ก็ได้ และต้องแน่ใจว่าจะไม่รั่วไหลออกไปภายนอกครับ/ค่ะ + - APP_KEY=your-secret-key + # ชนิดของฐานข้อมูลที่รองรับ: postgres, mysql, mariadb + - DB_DIALECT=mysql + # โฮสต์ของฐานข้อมูล สามารถแทนที่ด้วย IP ของเซิร์ฟเวอร์ฐานข้อมูลที่มีอยู่แล้วได้ครับ/ค่ะ + - DB_HOST=mysql + # พอร์ตของฐานข้อมูล + - DB_PORT=3306 + # ชื่อฐานข้อมูล + - DB_DATABASE=nocobase + # ผู้ใช้ฐานข้อมูล + - DB_USER=root + # รหัสผ่านฐานข้อมูล + - DB_PASSWORD=nocobase + # กำหนดให้ชื่อตารางและชื่อฟิลด์ของฐานข้อมูลถูกแปลงเป็นรูปแบบ snake_case หรือไม่ + - DB_UNDERSCORED=true + # เขตเวลา + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # หากคุณใช้บริการฐานข้อมูลที่มีอยู่แล้ว คุณสามารถเลือกที่จะไม่รัน mysql ได้ครับ/ค่ะ + mysql: + image: mysql:8 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mysql:/var/lib/mysql + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mariadb + environment: + # คีย์ของแอปพลิเคชัน ใช้สำหรับสร้างโทเค็นของผู้ใช้ เป็นต้น + # หาก APP_KEY ถูกแก้ไข โทเค็นเก่าก็จะใช้งานไม่ได้ครับ/ค่ะ + # สามารถเป็นสตริงแบบสุ่มใด ๆ ก็ได้ และต้องแน่ใจว่าจะไม่รั่วไหลออกไปภายนอกครับ/ค่ะ + - APP_KEY=your-secret-key + # ชนิดของฐานข้อมูลที่รองรับ: postgres, mysql, mariadb + - DB_DIALECT=mariadb + # โฮสต์ของฐานข้อมูล สามารถแทนที่ด้วย IP ของเซิร์ฟเวอร์ฐานข้อมูลที่มีอยู่แล้วได้ครับ/ค่ะ + - DB_HOST=mariadb + # พอร์ตของฐานข้อมูล + - DB_PORT=3306 + # ชื่อฐานข้อมูล + - DB_DATABASE=nocobase + # ผู้ใช้ฐานข้อมูล + - DB_USER=root + # รหัสผ่านฐานข้อมูล + - DB_PASSWORD=nocobase + # กำหนดให้ชื่อตารางและชื่อฟิลด์ของฐานข้อมูลถูกแปลงเป็นรูปแบบ snake_case หรือไม่ + - DB_UNDERSCORED=true + # เขตเวลา + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # หากคุณใช้บริการฐานข้อมูลที่มีอยู่แล้ว คุณสามารถเลือกที่จะไม่รัน mariadb ได้ครับ/ค่ะ + mariadb: + image: mariadb:11 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mariadb:/var/lib/mysql + networks: + - nocobase +``` + + + + + + + @@ -224,7 +406,7 @@ services: - + @@ -406,188 +588,6 @@ services: - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - postgres - environment: - # คีย์ของแอปพลิเคชัน ใช้สำหรับสร้างโทเค็นของผู้ใช้ เป็นต้น - # หาก APP_KEY ถูกแก้ไข โทเค็นเก่าก็จะใช้งานไม่ได้ครับ/ค่ะ - # สามารถเป็นสตริงแบบสุ่มใด ๆ ก็ได้ และต้องแน่ใจว่าจะไม่รั่วไหลออกไปภายนอกครับ/ค่ะ - - APP_KEY=your-secret-key - # ชนิดของฐานข้อมูลที่รองรับ: postgres, mysql, mariadb - - DB_DIALECT=postgres - # โฮสต์ของฐานข้อมูล สามารถแทนที่ด้วย IP ของเซิร์ฟเวอร์ฐานข้อมูลที่มีอยู่แล้วได้ครับ/ค่ะ - - DB_HOST=postgres - # พอร์ตของฐานข้อมูล - - DB_PORT=5432 - # ชื่อฐานข้อมูล - - DB_DATABASE=nocobase - # ผู้ใช้ฐานข้อมูล - - DB_USER=nocobase - # รหัสผ่านฐานข้อมูล - - DB_PASSWORD=nocobase - # เขตเวลา - - TZ=Asia/Shanghai - - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # หากคุณใช้บริการฐานข้อมูลที่มีอยู่แล้ว คุณสามารถเลือกที่จะไม่รัน postgres ได้ครับ/ค่ะ - postgres: - image: postgres:16 - restart: always - command: postgres -c wal_level=logical - environment: - POSTGRES_USER: nocobase - POSTGRES_DB: nocobase - POSTGRES_PASSWORD: nocobase - volumes: - - ./storage/db/postgres:/var/lib/postgresql/data - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mysql - environment: - # คีย์ของแอปพลิเคชัน ใช้สำหรับสร้างโทเค็นของผู้ใช้ เป็นต้น - # หาก APP_KEY ถูกแก้ไข โทเค็นเก่าก็จะใช้งานไม่ได้ครับ/ค่ะ - # สามารถเป็นสตริงแบบสุ่มใด ๆ ก็ได้ และต้องแน่ใจว่าจะไม่รั่วไหลออกไปภายนอกครับ/ค่ะ - - APP_KEY=your-secret-key - # ชนิดของฐานข้อมูลที่รองรับ: postgres, mysql, mariadb - - DB_DIALECT=mysql - # โฮสต์ของฐานข้อมูล สามารถแทนที่ด้วย IP ของเซิร์ฟเวอร์ฐานข้อมูลที่มีอยู่แล้วได้ครับ/ค่ะ - - DB_HOST=mysql - # พอร์ตของฐานข้อมูล - - DB_PORT=3306 - # ชื่อฐานข้อมูล - - DB_DATABASE=nocobase - # ผู้ใช้ฐานข้อมูล - - DB_USER=root - # รหัสผ่านฐานข้อมูล - - DB_PASSWORD=nocobase - # กำหนดให้ชื่อตารางและชื่อฟิลด์ของฐานข้อมูลถูกแปลงเป็นรูปแบบ snake_case หรือไม่ - - DB_UNDERSCORED=true - # เขตเวลา - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # หากคุณใช้บริการฐานข้อมูลที่มีอยู่แล้ว คุณสามารถเลือกที่จะไม่รัน mysql ได้ครับ/ค่ะ - mysql: - image: mysql:8 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mysql:/var/lib/mysql - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mariadb - environment: - # คีย์ของแอปพลิเคชัน ใช้สำหรับสร้างโทเค็นของผู้ใช้ เป็นต้น - # หาก APP_KEY ถูกแก้ไข โทเค็นเก่าก็จะใช้งานไม่ได้ครับ/ค่ะ - # สามารถเป็นสตริงแบบสุ่มใด ๆ ก็ได้ และต้องแน่ใจว่าจะไม่รั่วไหลออกไปภายนอกครับ/ค่ะ - - APP_KEY=your-secret-key - # ชนิดของฐานข้อมูลที่รองรับ: postgres, mysql, mariadb - - DB_DIALECT=mariadb - # โฮสต์ของฐานข้อมูล สามารถแทนที่ด้วย IP ของเซิร์ฟเวอร์ฐานข้อมูลที่มีอยู่แล้วได้ครับ/ค่ะ - - DB_HOST=mariadb - # พอร์ตของฐานข้อมูล - - DB_PORT=3306 - # ชื่อฐานข้อมูล - - DB_DATABASE=nocobase - # ผู้ใช้ฐานข้อมูล - - DB_USER=root - # รหัสผ่านฐานข้อมูล - - DB_PASSWORD=nocobase - # กำหนดให้ชื่อตารางและชื่อฟิลด์ของฐานข้อมูลถูกแปลงเป็นรูปแบบ snake_case หรือไม่ - - DB_UNDERSCORED=true - # เขตเวลา - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # หากคุณใช้บริการฐานข้อมูลที่มีอยู่แล้ว คุณสามารถเลือกที่จะไม่รัน mariadb ได้ครับ/ค่ะ - mariadb: - image: mariadb:11 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mariadb:/var/lib/mysql - networks: - - nocobase -``` - - - - - - diff --git a/docs/docs/th/get-started/installation/git.mdx b/docs/docs/th/get-started/installation/git.mdx index cdcd092c9c3..dacd064e240 100644 --- a/docs/docs/th/get-started/installation/git.mdx +++ b/docs/docs/th/get-started/installation/git.mdx @@ -23,26 +23,26 @@ $ yarn config set registry https://registry.npmmirror.com/ เลือกรุ่นของ NocoBase ([เปรียบเทียบเวอร์ชัน](../quickstart.md)) แล้วรันคำสั่งที่เกี่ยวข้องครับ/ค่ะ - + + +```bash +git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase +``` + + + ```bash git clone https://github.com/nocobase/nocobase.git -b next --depth=1 my-nocobase ``` - + ```bash git clone https://github.com/nocobase/nocobase.git -b develop --depth=1 my-nocobase ``` - - - -```bash -git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase -``` - diff --git a/docs/docs/tr/get-started/installation/create-nocobase-app.mdx b/docs/docs/tr/get-started/installation/create-nocobase-app.mdx index 4cb400bb30b..822ec891da2 100644 --- a/docs/docs/tr/get-started/installation/create-nocobase-app.mdx +++ b/docs/docs/tr/get-started/installation/create-nocobase-app.mdx @@ -18,7 +18,55 @@ NocoBase sürümünü ([Sürüm Karşılaştırması](../quickstart.md)) ve veri - + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d postgres \ + -e DB_HOST=localhost \ + -e DB_PORT=5432 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mysql \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mariadb \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + + + @@ -66,7 +114,7 @@ npx create-nocobase-app@beta my-nocobase-app -d mariadb \ - + @@ -114,54 +162,6 @@ npx create-nocobase-app@alpha my-nocobase-app -d mariadb \ - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d postgres \ - -e DB_HOST=localhost \ - -e DB_PORT=5432 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mysql \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mariadb \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - - :::uyarı Ortam Değişkenleri diff --git a/docs/docs/tr/get-started/installation/docker.mdx b/docs/docs/tr/get-started/installation/docker.mdx index 70f9bc37388..45a98d59ea9 100644 --- a/docs/docs/tr/get-started/installation/docker.mdx +++ b/docs/docs/tr/get-started/installation/docker.mdx @@ -42,7 +42,189 @@ Bir NocoBase sürümü ([Sürüm Karşılaştırması](../quickstart.md)) ve ver - + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - postgres + environment: + # Uygulama anahtarı, kullanıcı token'ları vb. oluşturmak için kullanılır. + # APP_KEY değiştirilirse, eski token'lar geçersiz hale gelir. + # Herhangi bir rastgele dize olabilir ve dışarı sızdırılmadığından emin olun. + - APP_KEY=your-secret-key + # Veritabanı türü, postgres, mysql, mariadb destekler + - DB_DIALECT=postgres + # Veritabanı ana bilgisayarı, mevcut bir veritabanı sunucusu IP'si ile değiştirilebilir + - DB_HOST=postgres + # Veritabanı portu + - DB_PORT=5432 + # Veritabanı adı + - DB_DATABASE=nocobase + # Veritabanı kullanıcısı + - DB_USER=nocobase + # Veritabanı şifresi + - DB_PASSWORD=nocobase + # Saat dilimi + - TZ=Asia/Shanghai + + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Mevcut bir veritabanı servisi kullanıyorsanız, postgres'i başlatmayabilirsiniz + postgres: + image: postgres:16 + restart: always + command: postgres -c wal_level=logical + environment: + POSTGRES_USER: nocobase + POSTGRES_DB: nocobase + POSTGRES_PASSWORD: nocobase + volumes: + - ./storage/db/postgres:/var/lib/postgresql/data + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mysql + environment: + # Uygulama anahtarı, kullanıcı token'ları vb. oluşturmak için kullanılır. + # APP_KEY değiştirilirse, eski token'lar geçersiz hale gelir. + # Herhangi bir rastgele dize olabilir ve dışarı sızdırılmadığından emin olun. + - APP_KEY=your-secret-key + # Veritabanı türü, postgres, mysql, mariadb destekler + - DB_DIALECT=mysql + # Veritabanı ana bilgisayarı, mevcut bir veritabanı sunucusu IP'si ile değiştirilebilir + - DB_HOST=mysql + # Veritabanı portu + - DB_PORT=3306 + # Veritabanı adı + - DB_DATABASE=nocobase + # Veritabanı kullanıcısı + - DB_USER=root + # Veritabanı şifresi + - DB_PASSWORD=nocobase + # Veritabanı tablo ve alan adlarının snake_case stiline dönüştürülüp dönüştürülmeyeceği + - DB_UNDERSCORED=true + # Saat dilimi + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Mevcut bir veritabanı servisi kullanıyorsanız, mysql'i başlatmayabilirsiniz + mysql: + image: mysql:8 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mysql:/var/lib/mysql + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mariadb + environment: + # Uygulama anahtarı, kullanıcı token'ları vb. oluşturmak için kullanılır. + # APP_KEY değiştirilirse, eski token'lar geçersiz hale gelir. + # Herhangi bir rastgele dize olabilir ve dışarı sızdırılmadığından emin olun. + - APP_KEY=your-secret-key + # Veritabanı türü, postgres, mysql, mariadb destekler + - DB_DIALECT=mariadb + # Veritabanı ana bilgisayarı, mevcut bir veritabanı sunucusu IP'si ile değiştirilebilir + - DB_HOST=mariadb + # Veritabanı portu + - DB_PORT=3306 + # Veritabanı adı + - DB_DATABASE=nocobase + # Veritabanı kullanıcısı + - DB_USER=root + # Veritabanı şifresi + - DB_PASSWORD=nocobase + # Veritabanı tablo ve alan adlarının snake_case stiline dönüştürülüp dönüştürülmeyeceği + - DB_UNDERSCORED=true + # Saat dilimi + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Mevcut bir veritabanı servisi kullanıyorsanız, mariadb'yi başlatmayabilirsiniz + mariadb: + image: mariadb:11 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mariadb:/var/lib/mysql + networks: + - nocobase +``` + + + + + + + @@ -224,7 +406,7 @@ services: - + @@ -406,188 +588,6 @@ services: - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - postgres - environment: - # Uygulama anahtarı, kullanıcı token'ları vb. oluşturmak için kullanılır. - # APP_KEY değiştirilirse, eski token'lar geçersiz hale gelir. - # Herhangi bir rastgele dize olabilir ve dışarı sızdırılmadığından emin olun. - - APP_KEY=your-secret-key - # Veritabanı türü, postgres, mysql, mariadb destekler - - DB_DIALECT=postgres - # Veritabanı ana bilgisayarı, mevcut bir veritabanı sunucusu IP'si ile değiştirilebilir - - DB_HOST=postgres - # Veritabanı portu - - DB_PORT=5432 - # Veritabanı adı - - DB_DATABASE=nocobase - # Veritabanı kullanıcısı - - DB_USER=nocobase - # Veritabanı şifresi - - DB_PASSWORD=nocobase - # Saat dilimi - - TZ=Asia/Shanghai - - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Mevcut bir veritabanı servisi kullanıyorsanız, postgres'i başlatmayabilirsiniz - postgres: - image: postgres:16 - restart: always - command: postgres -c wal_level=logical - environment: - POSTGRES_USER: nocobase - POSTGRES_DB: nocobase - POSTGRES_PASSWORD: nocobase - volumes: - - ./storage/db/postgres:/var/lib/postgresql/data - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mysql - environment: - # Uygulama anahtarı, kullanıcı token'ları vb. oluşturmak için kullanılır. - # APP_KEY değiştirilirse, eski token'lar geçersiz hale gelir. - # Herhangi bir rastgele dize olabilir ve dışarı sızdırılmadığından emin olun. - - APP_KEY=your-secret-key - # Veritabanı türü, postgres, mysql, mariadb destekler - - DB_DIALECT=mysql - # Veritabanı ana bilgisayarı, mevcut bir veritabanı sunucusu IP'si ile değiştirilebilir - - DB_HOST=mysql - # Veritabanı portu - - DB_PORT=3306 - # Veritabanı adı - - DB_DATABASE=nocobase - # Veritabanı kullanıcısı - - DB_USER=root - # Veritabanı şifresi - - DB_PASSWORD=nocobase - # Veritabanı tablo ve alan adlarının snake_case stiline dönüştürülüp dönüştürülmeyeceği - - DB_UNDERSCORED=true - # Saat dilimi - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Mevcut bir veritabanı servisi kullanıyorsanız, mysql'i başlatmayabilirsiniz - mysql: - image: mysql:8 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mysql:/var/lib/mysql - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mariadb - environment: - # Uygulama anahtarı, kullanıcı token'ları vb. oluşturmak için kullanılır. - # APP_KEY değiştirilirse, eski token'lar geçersiz hale gelir. - # Herhangi bir rastgele dize olabilir ve dışarı sızdırılmadığından emin olun. - - APP_KEY=your-secret-key - # Veritabanı türü, postgres, mysql, mariadb destekler - - DB_DIALECT=mariadb - # Veritabanı ana bilgisayarı, mevcut bir veritabanı sunucusu IP'si ile değiştirilebilir - - DB_HOST=mariadb - # Veritabanı portu - - DB_PORT=3306 - # Veritabanı adı - - DB_DATABASE=nocobase - # Veritabanı kullanıcısı - - DB_USER=root - # Veritabanı şifresi - - DB_PASSWORD=nocobase - # Veritabanı tablo ve alan adlarının snake_case stiline dönüştürülüp dönüştürülmeyeceği - - DB_UNDERSCORED=true - # Saat dilimi - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Mevcut bir veritabanı servisi kullanıyorsanız, mariadb'yi başlatmayabilirsiniz - mariadb: - image: mariadb:11 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mariadb:/var/lib/mysql - networks: - - nocobase -``` - - - - - - diff --git a/docs/docs/tr/get-started/installation/git.mdx b/docs/docs/tr/get-started/installation/git.mdx index 728077c8bc0..a61325e8d61 100644 --- a/docs/docs/tr/get-started/installation/git.mdx +++ b/docs/docs/tr/get-started/installation/git.mdx @@ -23,26 +23,26 @@ $ yarn config set registry https://registry.npmmirror.com/ Bir NocoBase sürümü seçin ([Sürüm Karşılaştırması](../quickstart.md)) ve ilgili komutu çalıştırın. - + + +```bash +git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase +``` + + + ```bash git clone https://github.com/nocobase/nocobase.git -b next --depth=1 my-nocobase ``` - + ```bash git clone https://github.com/nocobase/nocobase.git -b develop --depth=1 my-nocobase ``` - - - -```bash -git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase -``` - diff --git a/docs/docs/uk/get-started/installation/create-nocobase-app.mdx b/docs/docs/uk/get-started/installation/create-nocobase-app.mdx index 471e49c966a..15ca77c8d55 100644 --- a/docs/docs/uk/get-started/installation/create-nocobase-app.mdx +++ b/docs/docs/uk/get-started/installation/create-nocobase-app.mdx @@ -24,7 +24,55 @@ $ yarn config set registry https://registry.npmmirror.com/ - + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d postgres \ + -e DB_HOST=localhost \ + -e DB_PORT=5432 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mysql \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mariadb \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + + + @@ -72,7 +120,7 @@ npx create-nocobase-app@beta my-nocobase-app -d mariadb \ - + @@ -120,54 +168,6 @@ npx create-nocobase-app@alpha my-nocobase-app -d mariadb \ - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d postgres \ - -e DB_HOST=localhost \ - -e DB_PORT=5432 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mysql \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mariadb \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - - :::warning Змінні середовища diff --git a/docs/docs/uk/get-started/installation/docker.mdx b/docs/docs/uk/get-started/installation/docker.mdx index 4be18e379fb..f3718791022 100644 --- a/docs/docs/uk/get-started/installation/docker.mdx +++ b/docs/docs/uk/get-started/installation/docker.mdx @@ -42,7 +42,189 @@ vi docker-compose.yml - + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - postgres + environment: + # Ключ програми, використовується для генерації токенів користувачів тощо. + # Якщо APP_KEY буде змінено, старі токени стануть недійсними. + # Може бути будь-яким випадковим рядком, переконайтеся, що він не розголошується. + - APP_KEY=your-secret-key + # Тип бази даних, підтримує postgres, mysql, mariadb. + - DB_DIALECT=postgres + # Хост бази даних, можна замінити на IP-адресу наявного сервера бази даних. + - DB_HOST=postgres + # Порт бази даних + - DB_PORT=5432 + # Ім'я бази даних + - DB_DATABASE=nocobase + # Користувач бази даних + - DB_USER=nocobase + # Пароль бази даних + - DB_PASSWORD=nocobase + # Часовий пояс + - TZ=Asia/Shanghai + + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Якщо ви використовуєте наявну службу бази даних, ви можете не запускати postgres. + postgres: + image: postgres:16 + restart: always + command: postgres -c wal_level=logical + environment: + POSTGRES_USER: nocobase + POSTGRES_DB: nocobase + POSTGRES_PASSWORD: nocobase + volumes: + - ./storage/db/postgres:/var/lib/postgresql/data + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mysql + environment: + # Ключ програми, використовується для генерації токенів користувачів тощо. + # Якщо APP_KEY буде змінено, старі токени стануть недійсними. + # Може бути будь-яким випадковим рядком, переконайтеся, що він не розголошується. + - APP_KEY=your-secret-key + # Тип бази даних, підтримує postgres, mysql, mariadb. + - DB_DIALECT=mysql + # Хост бази даних, можна замінити на IP-адресу наявного сервера бази даних. + - DB_HOST=mysql + # Порт бази даних + - DB_PORT=3306 + # Ім'я бази даних + - DB_DATABASE=nocobase + # Користувач бази даних + - DB_USER=root + # Пароль бази даних + - DB_PASSWORD=nocobase + # Чи перетворювати імена таблиць та полів у стиль snake_case. + - DB_UNDERSCORED=true + # Часовий пояс + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Якщо ви використовуєте наявну службу бази даних, ви можете не запускати mysql. + mysql: + image: mysql:8 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mysql:/var/lib/mysql + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mariadb + environment: + # Ключ програми, використовується для генерації токенів користувачів тощо. + # Якщо APP_KEY буде змінено, старі токени стануть недійсними. + # Може бути будь-яким випадковим рядком, переконайтеся, що він не розголошується. + - APP_KEY=your-secret-key + # Тип бази даних, підтримує postgres, mysql, mariadb. + - DB_DIALECT=mariadb + # Хост бази даних, можна замінити на IP-адресу наявного сервера бази даних. + - DB_HOST=mariadb + # Порт бази даних + - DB_PORT=3306 + # Ім'я бази даних + - DB_DATABASE=nocobase + # Користувач бази даних + - DB_USER=root + # Пароль бази даних + - DB_PASSWORD=nocobase + # Чи перетворювати імена таблиць та полів у стиль snake_case. + - DB_UNDERSCORED=true + # Часовий пояс + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Якщо ви використовуєте наявну службу бази даних, ви можете не запускати mariadb. + mariadb: + image: mariadb:11 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mariadb:/var/lib/mysql + networks: + - nocobase +``` + + + + + + + @@ -224,7 +406,7 @@ services: - + @@ -406,188 +588,6 @@ services: - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - postgres - environment: - # Ключ програми, використовується для генерації токенів користувачів тощо. - # Якщо APP_KEY буде змінено, старі токени стануть недійсними. - # Може бути будь-яким випадковим рядком, переконайтеся, що він не розголошується. - - APP_KEY=your-secret-key - # Тип бази даних, підтримує postgres, mysql, mariadb. - - DB_DIALECT=postgres - # Хост бази даних, можна замінити на IP-адресу наявного сервера бази даних. - - DB_HOST=postgres - # Порт бази даних - - DB_PORT=5432 - # Ім'я бази даних - - DB_DATABASE=nocobase - # Користувач бази даних - - DB_USER=nocobase - # Пароль бази даних - - DB_PASSWORD=nocobase - # Часовий пояс - - TZ=Asia/Shanghai - - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Якщо ви використовуєте наявну службу бази даних, ви можете не запускати postgres. - postgres: - image: postgres:16 - restart: always - command: postgres -c wal_level=logical - environment: - POSTGRES_USER: nocobase - POSTGRES_DB: nocobase - POSTGRES_PASSWORD: nocobase - volumes: - - ./storage/db/postgres:/var/lib/postgresql/data - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mysql - environment: - # Ключ програми, використовується для генерації токенів користувачів тощо. - # Якщо APP_KEY буде змінено, старі токени стануть недійсними. - # Може бути будь-яким випадковим рядком, переконайтеся, що він не розголошується. - - APP_KEY=your-secret-key - # Тип бази даних, підтримує postgres, mysql, mariadb. - - DB_DIALECT=mysql - # Хост бази даних, можна замінити на IP-адресу наявного сервера бази даних. - - DB_HOST=mysql - # Порт бази даних - - DB_PORT=3306 - # Ім'я бази даних - - DB_DATABASE=nocobase - # Користувач бази даних - - DB_USER=root - # Пароль бази даних - - DB_PASSWORD=nocobase - # Чи перетворювати імена таблиць та полів у стиль snake_case. - - DB_UNDERSCORED=true - # Часовий пояс - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Якщо ви використовуєте наявну службу бази даних, ви можете не запускати mysql. - mysql: - image: mysql:8 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mysql:/var/lib/mysql - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mariadb - environment: - # Ключ програми, використовується для генерації токенів користувачів тощо. - # Якщо APP_KEY буде змінено, старі токени стануть недійсними. - # Може бути будь-яким випадковим рядком, переконайтеся, що він не розголошується. - - APP_KEY=your-secret-key - # Тип бази даних, підтримує postgres, mysql, mariadb. - - DB_DIALECT=mariadb - # Хост бази даних, можна замінити на IP-адресу наявного сервера бази даних. - - DB_HOST=mariadb - # Порт бази даних - - DB_PORT=3306 - # Ім'я бази даних - - DB_DATABASE=nocobase - # Користувач бази даних - - DB_USER=root - # Пароль бази даних - - DB_PASSWORD=nocobase - # Чи перетворювати імена таблиць та полів у стиль snake_case. - - DB_UNDERSCORED=true - # Часовий пояс - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Якщо ви використовуєте наявну службу бази даних, ви можете не запускати mariadb. - mariadb: - image: mariadb:11 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mariadb:/var/lib/mysql - networks: - - nocobase -``` - - - - - - diff --git a/docs/docs/uk/get-started/installation/git.mdx b/docs/docs/uk/get-started/installation/git.mdx index 8db748be46f..3931086d210 100644 --- a/docs/docs/uk/get-started/installation/git.mdx +++ b/docs/docs/uk/get-started/installation/git.mdx @@ -23,26 +23,26 @@ $ yarn config set registry https://registry.npmmirror.com/ Виберіть версію NocoBase ([Порівняння версій](../quickstart.md)) та виконайте відповідну команду. - + + +```bash +git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase +``` + + + ```bash git clone https://github.com/nocobase/nocobase.git -b next --depth=1 my-nocobase ``` - + ```bash git clone https://github.com/nocobase/nocobase.git -b develop --depth=1 my-nocobase ``` - - - -```bash -git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase -``` - diff --git a/docs/docs/vi/get-started/installation/create-nocobase-app.mdx b/docs/docs/vi/get-started/installation/create-nocobase-app.mdx index 6d175dcbe9a..03d8021b6c4 100644 --- a/docs/docs/vi/get-started/installation/create-nocobase-app.mdx +++ b/docs/docs/vi/get-started/installation/create-nocobase-app.mdx @@ -24,7 +24,55 @@ Chọn phiên bản NocoBase ([So sánh phiên bản](../quickstart.md)) và lo - + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d postgres \ + -e DB_HOST=localhost \ + -e DB_PORT=5432 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mysql \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + +```bash +yarn create nocobase-app my-nocobase-app -d mariadb \ + -e DB_HOST=localhost \ + -e DB_PORT=3306 \ + -e DB_DATABASE=nocobase \ + -e DB_USER=nocobase \ + -e DB_PASSWORD=nocobase \ + -e TZ=Asia/Shanghai +``` + + + + + + + @@ -72,7 +120,7 @@ npx create-nocobase-app@beta my-nocobase-app -d mariadb \ - + @@ -120,54 +168,6 @@ npx create-nocobase-app@alpha my-nocobase-app -d mariadb \ - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d postgres \ - -e DB_HOST=localhost \ - -e DB_PORT=5432 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mysql \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - -```bash -yarn create nocobase-app my-nocobase-app -d mariadb \ - -e DB_HOST=localhost \ - -e DB_PORT=3306 \ - -e DB_DATABASE=nocobase \ - -e DB_USER=nocobase \ - -e DB_PASSWORD=nocobase \ - -e TZ=Asia/Shanghai -``` - - - - - - :::warning Giải thích về biến môi trường diff --git a/docs/docs/vi/get-started/installation/docker.mdx b/docs/docs/vi/get-started/installation/docker.mdx index db8be5ac587..ca147d8d324 100644 --- a/docs/docs/vi/get-started/installation/docker.mdx +++ b/docs/docs/vi/get-started/installation/docker.mdx @@ -42,7 +42,189 @@ Chọn phiên bản NocoBase ([So sánh phiên bản](../quickstart.md)) và lo - + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - postgres + environment: + # Khóa ứng dụng, dùng để tạo token người dùng, v.v. + # Nếu APP_KEY thay đổi, các token cũ sẽ không còn hiệu lực + # Có thể là bất kỳ chuỗi ngẫu nhiên nào và đảm bảo không bị rò rỉ ra ngoài + - APP_KEY=your-secret-key + # Loại cơ sở dữ liệu, hỗ trợ postgres, mysql, mariadb + - DB_DIALECT=postgres + # Máy chủ cơ sở dữ liệu, có thể thay thế bằng IP máy chủ cơ sở dữ liệu hiện có + - DB_HOST=postgres + # Cổng cơ sở dữ liệu + - DB_PORT=5432 + # Tên cơ sở dữ liệu + - DB_DATABASE=nocobase + # Người dùng cơ sở dữ liệu + - DB_USER=nocobase + # Mật khẩu cơ sở dữ liệu + - DB_PASSWORD=nocobase + # Múi giờ + - TZ=Asia/Shanghai + + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Nếu bạn sử dụng dịch vụ cơ sở dữ liệu hiện có, bạn có thể không khởi động postgres + postgres: + image: postgres:16 + restart: always + command: postgres -c wal_level=logical + environment: + POSTGRES_USER: nocobase + POSTGRES_DB: nocobase + POSTGRES_PASSWORD: nocobase + volumes: + - ./storage/db/postgres:/var/lib/postgresql/data + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mysql + environment: + # Khóa ứng dụng, dùng để tạo token người dùng, v.v. + # Nếu APP_KEY thay đổi, các token cũ sẽ không còn hiệu lực + # Có thể là bất kỳ chuỗi ngẫu nhiên nào và đảm bảo không bị rò rỉ ra ngoài + - APP_KEY=your-secret-key + # Loại cơ sở dữ liệu, hỗ trợ postgres, mysql, mariadb + - DB_DIALECT=mysql + # Máy chủ cơ sở dữ liệu, có thể thay thế bằng IP máy chủ cơ sở dữ liệu hiện có + - DB_HOST=mysql + # Cổng cơ sở dữ liệu + - DB_PORT=3306 + # Tên cơ sở dữ liệu + - DB_DATABASE=nocobase + # Người dùng cơ sở dữ liệu + - DB_USER=root + # Mật khẩu cơ sở dữ liệu + - DB_PASSWORD=nocobase + # Tên bảng, tên trường cơ sở dữ liệu có chuyển đổi sang kiểu snake_case không + - DB_UNDERSCORED=true + # Múi giờ + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Nếu bạn sử dụng dịch vụ cơ sở dữ liệu hiện có, bạn có thể không khởi động mysql + mysql: + image: mysql:8 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mysql:/var/lib/mysql + networks: + - nocobase +``` + + + + + +```yml +networks: + nocobase: + driver: bridge + +services: + app: + image: nocobase/nocobase:latest-full + restart: always + networks: + - nocobase + depends_on: + - mariadb + environment: + # Khóa ứng dụng, dùng để tạo token người dùng, v.v. + # Nếu APP_KEY thay đổi, các token cũ sẽ không còn hiệu lực + # Có thể là bất kỳ chuỗi ngẫu nhiên nào và đảm bảo không bị rò rỉ ra ngoài + - APP_KEY=your-secret-key + # Loại cơ sở dữ liệu, hỗ trợ postgres, mysql, mariadb + - DB_DIALECT=mariadb + # Máy chủ cơ sở dữ liệu, có thể thay thế bằng IP máy chủ cơ sở dữ liệu hiện có + - DB_HOST=mariadb + # Cổng cơ sở dữ liệu + - DB_PORT=3306 + # Tên cơ sở dữ liệu + - DB_DATABASE=nocobase + # Người dùng cơ sở dữ liệu + - DB_USER=root + # Mật khẩu cơ sở dữ liệu + - DB_PASSWORD=nocobase + # Tên bảng, tên trường cơ sở dữ liệu có chuyển đổi sang kiểu snake_case không + - DB_UNDERSCORED=true + # Múi giờ + - TZ=Asia/Shanghai + volumes: + - ./storage:/app/nocobase/storage + ports: + - '13000:80' + # init: true + + # Nếu bạn sử dụng dịch vụ cơ sở dữ liệu hiện có, bạn có thể không khởi động mariadb + mariadb: + image: mariadb:11 + environment: + MYSQL_DATABASE: nocobase + MYSQL_USER: nocobase + MYSQL_PASSWORD: nocobase + MYSQL_ROOT_PASSWORD: nocobase + restart: always + volumes: + - ./storage/db/mariadb:/var/lib/mysql + networks: + - nocobase +``` + + + + + + + @@ -224,7 +406,7 @@ services: - + @@ -406,188 +588,6 @@ services: - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - postgres - environment: - # Khóa ứng dụng, dùng để tạo token người dùng, v.v. - # Nếu APP_KEY thay đổi, các token cũ sẽ không còn hiệu lực - # Có thể là bất kỳ chuỗi ngẫu nhiên nào và đảm bảo không bị rò rỉ ra ngoài - - APP_KEY=your-secret-key - # Loại cơ sở dữ liệu, hỗ trợ postgres, mysql, mariadb - - DB_DIALECT=postgres - # Máy chủ cơ sở dữ liệu, có thể thay thế bằng IP máy chủ cơ sở dữ liệu hiện có - - DB_HOST=postgres - # Cổng cơ sở dữ liệu - - DB_PORT=5432 - # Tên cơ sở dữ liệu - - DB_DATABASE=nocobase - # Người dùng cơ sở dữ liệu - - DB_USER=nocobase - # Mật khẩu cơ sở dữ liệu - - DB_PASSWORD=nocobase - # Múi giờ - - TZ=Asia/Shanghai - - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Nếu bạn sử dụng dịch vụ cơ sở dữ liệu hiện có, bạn có thể không khởi động postgres - postgres: - image: postgres:16 - restart: always - command: postgres -c wal_level=logical - environment: - POSTGRES_USER: nocobase - POSTGRES_DB: nocobase - POSTGRES_PASSWORD: nocobase - volumes: - - ./storage/db/postgres:/var/lib/postgresql/data - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mysql - environment: - # Khóa ứng dụng, dùng để tạo token người dùng, v.v. - # Nếu APP_KEY thay đổi, các token cũ sẽ không còn hiệu lực - # Có thể là bất kỳ chuỗi ngẫu nhiên nào và đảm bảo không bị rò rỉ ra ngoài - - APP_KEY=your-secret-key - # Loại cơ sở dữ liệu, hỗ trợ postgres, mysql, mariadb - - DB_DIALECT=mysql - # Máy chủ cơ sở dữ liệu, có thể thay thế bằng IP máy chủ cơ sở dữ liệu hiện có - - DB_HOST=mysql - # Cổng cơ sở dữ liệu - - DB_PORT=3306 - # Tên cơ sở dữ liệu - - DB_DATABASE=nocobase - # Người dùng cơ sở dữ liệu - - DB_USER=root - # Mật khẩu cơ sở dữ liệu - - DB_PASSWORD=nocobase - # Tên bảng, tên trường cơ sở dữ liệu có chuyển đổi sang kiểu snake_case không - - DB_UNDERSCORED=true - # Múi giờ - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Nếu bạn sử dụng dịch vụ cơ sở dữ liệu hiện có, bạn có thể không khởi động mysql - mysql: - image: mysql:8 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mysql:/var/lib/mysql - networks: - - nocobase -``` - - - - - -```yml -networks: - nocobase: - driver: bridge - -services: - app: - image: nocobase/nocobase:latest-full - restart: always - networks: - - nocobase - depends_on: - - mariadb - environment: - # Khóa ứng dụng, dùng để tạo token người dùng, v.v. - # Nếu APP_KEY thay đổi, các token cũ sẽ không còn hiệu lực - # Có thể là bất kỳ chuỗi ngẫu nhiên nào và đảm bảo không bị rò rỉ ra ngoài - - APP_KEY=your-secret-key - # Loại cơ sở dữ liệu, hỗ trợ postgres, mysql, mariadb - - DB_DIALECT=mariadb - # Máy chủ cơ sở dữ liệu, có thể thay thế bằng IP máy chủ cơ sở dữ liệu hiện có - - DB_HOST=mariadb - # Cổng cơ sở dữ liệu - - DB_PORT=3306 - # Tên cơ sở dữ liệu - - DB_DATABASE=nocobase - # Người dùng cơ sở dữ liệu - - DB_USER=root - # Mật khẩu cơ sở dữ liệu - - DB_PASSWORD=nocobase - # Tên bảng, tên trường cơ sở dữ liệu có chuyển đổi sang kiểu snake_case không - - DB_UNDERSCORED=true - # Múi giờ - - TZ=Asia/Shanghai - volumes: - - ./storage:/app/nocobase/storage - ports: - - '13000:80' - # init: true - - # Nếu bạn sử dụng dịch vụ cơ sở dữ liệu hiện có, bạn có thể không khởi động mariadb - mariadb: - image: mariadb:11 - environment: - MYSQL_DATABASE: nocobase - MYSQL_USER: nocobase - MYSQL_PASSWORD: nocobase - MYSQL_ROOT_PASSWORD: nocobase - restart: always - volumes: - - ./storage/db/mariadb:/var/lib/mysql - networks: - - nocobase -``` - - - - - - ## 3. Cài đặt và khởi động NocoBase diff --git a/docs/docs/vi/get-started/installation/git.mdx b/docs/docs/vi/get-started/installation/git.mdx index 543d754c183..44c52620ae5 100644 --- a/docs/docs/vi/get-started/installation/git.mdx +++ b/docs/docs/vi/get-started/installation/git.mdx @@ -23,26 +23,26 @@ $ yarn config set registry https://registry.npmmirror.com/ Chọn phiên bản NocoBase ([So sánh phiên bản](../quickstart.md)) và chạy lệnh tương ứng. - + + +```bash +git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase +``` + + + ```bash git clone https://github.com/nocobase/nocobase.git -b next --depth=1 my-nocobase ``` - + ```bash git clone https://github.com/nocobase/nocobase.git -b develop --depth=1 my-nocobase ``` - - - -```bash -git clone https://github.com/nocobase/nocobase.git -b main --depth=1 my-nocobase -``` -