Skip to content

Latest commit

 

History

History
122 lines (103 loc) · 2.99 KB

Nocobase.md

File metadata and controls

122 lines (103 loc) · 2.99 KB

Nocobase

A scalability-first, open-source no-code/low-code platform to build internal tools.

GitHub

  1. Clone the repository

  2. Update the docker-compose.yaml file. The Docker installation instructions can be found here. ** Note: This compose file uses PostgreSQL v15 as opposed to 'latest' or v16 **

version: '3'

networks:
  nocobase:
    driver: bridge

services:
  app:
    image: nocobase/nocobase:latest
    networks:
      - nocobase
    depends_on:
      - postgres
    environment:
      # The application's secret key, used to generate user tokens, etc.
      # If APP_KEY is changed, old tokens will also become invalid.
      # It can be any random string, and make sure it is not exposed.
      - APP_KEY=your-secret-key
      # Database type, supports postgres, mysql, mariadb
      - DB_DIALECT=postgres
      # Database host, can be replaced with the IP of an existing database server
      - DB_HOST=postgres
      # Database name
      - DB_DATABASE=nocobase
      # Database user
      - DB_USER=nocobase
      # Database password
      - DB_PASSWORD=nocobase
    volumes:
      - ./storage:/app/nocobase/storage
    ports:
      - '13000:80'
    # init: true

  # If using an existing database server, postgres service can be omitted
  postgres:
    image: postgres:15
    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
    ports:
      - '5432:5432'
    networks:
      - nocobase
  1. Pull the Docker images.
docker-compose pull
  1. Run the app and PostgreSQL database.
docker-compose up -d
  1. Run YugabyteDB in Docker.
  2. Execute offline migration.
  3. Verify schema and data parity between PostgreSQL and YugabyteDB.
  4. Change the docker-compose.yaml file to point to YugabyteDB.
version: '3'

networks:
  nocobase:
    driver: bridge

services:
  app:
    image: nocobase/nocobase:latest
    networks:
      - nocobase
    environment:
      # The application's secret key, used to generate user tokens, etc.
      # If APP_KEY is changed, old tokens will also become invalid.
      # It can be any random string, and make sure it is not exposed.
      - APP_KEY=your-secret-key
      # Database type, supports postgres, mysql, mariadb
      - DB_DIALECT=postgres
      # Database host, can be replaced with the IP of an existing database server
      - DB_HOST=host.docker.internal
      # Database name
      - DB_DATABASE=nocobase
      # Database user
      - DB_USER=yugabyte
      # Database password
      - DB_PASSWORD=yugabyte
      - DB_PORT=5433
    volumes:
      - ./storage:/app/nocobase/storage
    ports:
      - '13000:80'
    # init: true
  1. Re-run docker-compose.
docker-compose up
  1. Verify the application.