Skip to content

Deployment Tutorial

Default Account and Password

Username: admin@sun.cc

Password: 12345678

Command Parameters

v1.4.0+

ParameterDescription
-hView command instructions
-config-resetGenerate configuration file (conf/conf.ini)
-config-pathCreate or reset the configuration file (default "./conf")
-password-resetReset the password of the first admin account
Click here to view versions v1.3.0 and earlier
ParameterDescription
-hView command instructions
-configGenerate configuration file (conf/conf.ini)
-password-resetReset the password of the first admin account

Docker Run

v1.4.0+

If you are upgrading from version v1.3.0 or earlier to this version, please refer to this note

Directory mounting -v, all optional, choose according to your needs:

Local DirectoryContainer DirectoryDescription
~/sun-panel/conf/app/confConfiguration files (multi-directory)
/var/run/docker.sock/var/run/docker.sockIf using Docker within the container, mount this directory 1.5.0+ Beta
~/sun-panel/runtime/app/runtimeRuntime logs (not recommended to mount)
Click here to view versions v1.3.0 and earlier

Directory mounts -v, all optional, choose according to your needs:

Container DirectoryDescription
/app/confConfiguration file
/app/uploadsUploaded files
/app/databaseDatabase files
/app/runtimeRuntime logs (not recommended to mount)
/app/web/customCustom (js, css, etc.) only v1.3.0
  1. Pull the latest image
sh
docker pull hslr/sun-panel:latest
  1. Run directly

v1.4.0+

Replace latest with other version numbers (View),An example has been provided for mounting the Docker directory, allowing the use of Docker within the container.

sh
docker run -d --restart=always -p 3002:3002 \
-v ~/docker_data/sun-panel/conf:/app/conf \
-v /var/run/docker.sock:/var/run/docker.sock \
--name sun-panel \
hslr/sun-panel:latest

Container port default: 3002, --restart=always for automatic restart, -d for running in the background.

Click here to view versions v1.3.0 and earlier
sh
docker run -d --restart=always -p 3002:3002 \
-v ~/docker_data/sun-panel/conf:/app/conf \
-v ~/docker_data/sun-panel/uploads:/app/uploads \
-v ~/docker_data/sun-panel/database:/app/database \
--name sun-panel \
hslr/sun-panel

Binary File Run

TIP

Go to GitHub Releases to download binary files.

Example execution (Use the command line to run)

sh
./sun-panel

Released under the MIT License.