Autumn
About 397 wordsAbout 1 min
2024-11-17
Tips
If you forget your password, enter the Mongodb database and modify the password in the user table to b0ce71fcbed8a6ca579d52800145119cc7d999dc8651b62dfc1ced9a984e6e64
The system is divided into four services:
Tips
The compose configuration file for single machine deployment already contains the database image, you only need to modify the account and password of mongodb and redis. Due to network problems of some machines (not clear where the problem is for the time being), the temporary solution for scan's docker is to set network_mode to host, so scan's docker can use 127 to access the database without changing.
Do not use special symbols such as @ in the database password.
The database and redis will be mounted in the data folder of the project's root directory. If the password has been set once and the data folder has been generated, the password will not change. If you rebuild it later, you can pay attention to this issue to prevent the password from being changed and not taking effect.
git clone https://github.com/Autumn-27/ScopeSentry.git
cd ScopeSentry
# Modify the account and password of mongodb and redis in the .env file.
docker-compose -f single-host-deployment.yml up -d
View the initial user password and the secondary verification password of the plug-in
docker logs scope-sentry
Then visit IP:8082
That's all for single-machine deployment. Change the account password and start docker with one command
After single-machine deployment, if you want to run the scanning node on other machines, you only need to run scan separately and fill in the database address with the IP of the machine where the single-machine deployment is performed.
In the docker configuration file of the database, there is a mount directory setting. The default is the data directory of the current running directory. When migrating data, just migrate the file.