-
Notifications
You must be signed in to change notification settings - Fork 0
Setup Central Server with Docker
hammy275 edited this page Jun 9, 2024
·
2 revisions
comp-status consists of 3 parts, central-server
, the server that processes all computer resource information and distributes it, server
s, the computers that send their resource information to central-server
, and client
s that access the data.
This page details setting up both a central-server
and server
simultaneously using Docker Compose.
Before setting up with Docker, please note the following limitations in comparison to running without Docker:
- Computers that you are retrieving the status of will provide invalid data if that computer is using Docker UNLESS the computer is running Linux and the computer is not using Docker Desktop.
- Download the repository using
git clone https://github.com/hammy275/comp-status
inside the folder where you want to store the central-server files - Port forward the port you would like to host the server on.
- If using Let's Encrypt, follow the instructions using Certbot to get a certificate.
- In the
central-server
folder, create an empty text file nameddb.json
. - In the
server
folder, copysettings_docker.json
into the same folder with the namesettings.json
. - In the
settings.json
file, replaceYOUR_USERNAME_HERE
andYOUR_PASSWORD_HERE_THAT_WILL_BE_REMOVED_AFTER_SUCCESSFUL_AUTHENTICATION
with a username and password. Remember these for later. - From the root directory of this repository, run
docker compose up -d
. - Visit http://localhost:5000 in your web browser of choice. From here, log in with the username
fts_user
and the password shown in thecentral-server
logs. These logs can be viewed by running the commanddocker logs -f comp-status-central-server
. - Go to the first time setup page at the top, then proceed with first time setup. Do not change the port from 5000 to another number.
- Log in with the user account you created during first time setup, and create another user account with the "New User can Send Computer Info" permission enabled. The username and password for this new account should be the same as you set in step 6.
- Restart the
server
container usingdocker start comp-status-server
. - You should be good! If all went well, you can visit http://localhost:5000 in your web browser, log in with the user account you made during first-time setup in step 9, then see the status of said computer.