Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions for deploying SerpBear to FlashPanel #234

Open
nguyentranchung opened this issue Jul 10, 2024 · 0 comments
Open

Instructions for deploying SerpBear to FlashPanel #234

nguyentranchung opened this issue Jul 10, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@nguyentranchung
Copy link

nguyentranchung commented Jul 10, 2024

Deploy SerpBear

  1. Install the docker application in the server's applications tab

  2. Create a proxy website port to port 4444 (this port is up to you to decide)

Screenshot 2024-07-10 at 13 32 31

Proceed with SSL installation for this website

  1. Open the file manager for the server (not the site)

Proceed to create the file serpbear/docker-compose.yaml

Screenshot 2024-07-10 at 13 35 10
  1. Open the newly created docker-compose.yaml file
Screenshot 2024-07-10 at 13 38 12
  1. Enter content for the docker-compose.yaml file
version: "3.8"

services:
    app:
        image: towfiqi/serpbear
        restart: unless-stopped
        ports:
            - 4444:3000
        environment:
            - USER=admin
            - PASSWORD=0123456789
            - SECRET=4715aed3216f7b0a38e6b534a958362654e96d10fbc04700770d572af3dce43625dd
            - APIKEY=5saedXklbslhnapihe2pihp3pih4fdnakhjwq5
            - SESSION_DURATION=24
            - NEXT_PUBLIC_APP_URL=https://your-domain.com
        volumes:
            - serpbear_appdata:/app/data
networks:
    my-network:
        driver: bridge
volumes:
    serpbear_appdata:

Note for configuring the following colored lines:

  • 4444:3000: 3000 is fixed and you should not change it, 4444 is the port of the serpbear website that you decided to create in step 2
  • USER: The username you want to use to log in to the application. for example: admin
  • PASSWORD: The password you want to use to log in to the application. For example: 0123456789
  • SECRET: The secret key will be used to encrypt 3rd party API keys and passwords. e.g. 4715aed3216f7b0a38e6b534a958362654e96d10fbc04700770d572af3dce43625dd
  • APIKEY: The API key that will be used to access the application's API. for example: 5saedXklbslhnapihe2pihp3pih4fdnakhjwq5
  • SESSION_DUration: Duration (in hours) of the user's login session. e.g. 24
  • NEXT_PUBLIC_APP_URL: The URL where your app is stored and accessible. for example: http://123.123.123.123:4444 or https://your-domain.com
  1. Launch the application
Screenshot 2024-07-10 at 13 58 48

Open the terminal server and run the following command:

cd /root/serpbear
docker compose up -d
@towfiqi towfiqi added the documentation Improvements or additions to documentation label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants