Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

NodeBB

  1. Home
  2. Technical Support
  3. Share NodeBB setup between Devices

Share NodeBB setup between Devices

Scheduled Pinned Locked Moved Technical Support
8 Posts 2 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • rp1@community.nodebb.orgR This user is from outside of this forum
    rp1@community.nodebb.orgR This user is from outside of this forum
    [email protected]
    wrote last edited by
    #1

    Hello, I am working in the team on NodeBB project. I've already installed some plugins such as nodebb-plugin-session-sharing and nodebb-plugin-sso-oauth2-multiple. They require some setup for it. I want to share my current with my coworkers and I don't know how to do it, I'd be very thankful for any help.

    Right now, there is a clonned github repo with one main branch. When I check the file changes, there are more than 5k. I am not sure if I pushed all of them, they would sync up my changes.

    Therefore, what should I do?

    1 Reply Last reply
    0
    • ashutosh-verma@community.nodebb.orgA This user is from outside of this forum
      ashutosh-verma@community.nodebb.orgA This user is from outside of this forum
      [email protected]
      wrote last edited by
      #2

      Rp1 maybe you can use docker and share the image with the team

      1 Reply Last reply
      0
      • rp1@community.nodebb.orgR This user is from outside of this forum
        rp1@community.nodebb.orgR This user is from outside of this forum
        [email protected]
        wrote last edited by
        #3

        Ashutosh-Verma, good suggestion, however, I am not sure which exact image should I share? And if so, where data is saved?

        1 Reply Last reply
        0
        • ashutosh-verma@community.nodebb.orgA This user is from outside of this forum
          ashutosh-verma@community.nodebb.orgA This user is from outside of this forum
          [email protected]
          wrote last edited by
          #4

          Rp1 Are you famailiar woth Docker compose? I can maybe help with that.

          1 Reply Last reply
          0
          • rp1@community.nodebb.orgR This user is from outside of this forum
            rp1@community.nodebb.orgR This user is from outside of this forum
            [email protected]
            wrote last edited by
            #5

            Ashutosh-Verma , yeah, I know a little about it, what exactly do you want to do with it?

            1 Reply Last reply
            0
            • ashutosh-verma@community.nodebb.orgA This user is from outside of this forum
              ashutosh-verma@community.nodebb.orgA This user is from outside of this forum
              [email protected]
              wrote last edited by [email protected]
              #6

              Rp1 This is my docker-compose.yaml file

              services:
                nodebb:
                  build: .
                  restart: unless-stopped
                  container_name: nodebb
                  ports:
                    - '4567:4567' # comment this out if you don't want to expose NodeBB to the host, or change the first number to any port you want
                  volumes:
                    - ./nodebb/nodebb-build:/usr/src/app/build
                    - ./nodebb/nodebb-uploads:/usr/src/app/public/uploads
                    - ./nodebb/nodebb-config:/opt/config
                    - ./setup.json:/usr/src/app/setup.json
              
                postgres:
                  image: postgres:17.5-alpine
                  restart: unless-stopped
                  environment:
                    POSTGRES_USER: nodebb
                    POSTGRES_PASSWORD: nodebb
                    POSTGRES_DB: nodebb
                  volumes:
                    - ./postgres/postgres-data:/var/lib/postgresql/data
              

              This is my Dockerfile

              FROM ghcr.io/nodebb/nodebb:latest
              
              # Install NodeBB plugins
              # Add the plugins you want to use here
              
              RUN npm install \
                  nodebb-plugin-cards \
                  nodebb-plugin-link-preview \
                  nodebb-plugin-tenor-gif
              
              # Expose the default NodeBB port
              EXPOSE 4567
              
              # The base image should already have the appropriate CMD/ENTRYPOINT
              

              Just run docker compose up -d and you should have the forum up and the entire data should be in the directory itself.

              You can then just share the directory itself with anybody and they will have the exact setup running.

              NOTE: You'll have to manually create the file setup.json under root folder with docker-compose.yaml file BEFORE starting it ,You can get the file from Github here

              If you get Permission errors (Most likely) run chown -R 1001:1001 ./nodebb ./setup.json

              1 Reply Last reply
              0
              • rp1@community.nodebb.orgR This user is from outside of this forum
                rp1@community.nodebb.orgR This user is from outside of this forum
                [email protected]
                wrote last edited by
                #7

                Ashutosh-Verma, but plugin settings will not be shared, am I right?

                1 Reply Last reply
                0
                • ashutosh-verma@community.nodebb.orgA This user is from outside of this forum
                  ashutosh-verma@community.nodebb.orgA This user is from outside of this forum
                  [email protected]
                  wrote last edited by
                  #8

                  Rp1 Everything will be shared as is, Plugin settings, Database, app settings...everything

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Login or register to search.
                  Powered by NodeBB Contributors
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups