-
Notifications
You must be signed in to change notification settings - Fork 0
Query
penevl edited this page May 21, 2023
·
8 revisions
Here is an example of how the data folder whould look like.
Note: The logs folder will be created automatically on first launch
data/
├─ logs/
│ ├─ 05-05-2023-19-29.log
│ ├─ 05-05-2023-19-23.log
├─ query-options.json
Here is an example query-options.json and an explenation of what every variable does.
{
"serverIp": "",
"databaseIp": "",
"databaseUsername": "",
"databasePasswd": "",
"cronTimezone": "",
"missionTimes": [
""
],
"groups": [
{
"groupName": "",
"groupMembers": [
""
]
}
],
"logLevel": ""
}- serverIp - String - The connection string for your mongodb database - Example:
123.456.789.01- This has to be an IP and not a domain. - databaseIp - String - The connection string for your mongodb database - Example:
attendance-tracker.mongodb.net/attendance-tracker,123.456.789.01/arma-tracker - databaseUsername - String - The username to log in to the database
- databasePasswd - String - The password to log in to the database
- cronTimezone - String - The timezone cron will use - List of timezones. Make sure to use the values in the third column
- missionTimes - Array of strings - A list of sting in the GNU Cron format which determin when the query will log the server state to the database - Example:
"missionTimes": [
"59 14 12 * * SAT",
"59 11 16 * * SUN"
]Note: Make sure to set the seconds field to 59 since anything else causes extremely weird behaviour
- Groups - Array of groups - A group object contains a
groupNamewhich is of type string and is the name of the group which will be later displayed in honeycomb and an array of strings calledgroupMemberswhich contains the in game user names of the players in a given group/squad. Example:
"groups": [
{
"groupName": "Echo squad",
"groupMembers": [
"Yo",
"Mama",
"Gay",
"ElDuko [TAS]"
]
}
]- logLevel - String - Can be either
TRACE,INFO,WARNorERROR
For the purpose of this demostration we will assume the data folder is located in /example/query. To run the app in docker just run the command bellow
sudo docker run -d -e TZ="Europe/Gay" -v /example/query/data:/app/data --name=query elduko1434/query:<VERSION>Where <VERSION> is the version on docker hub you want to use. If you want to use a self built image just replace elduko1434/query:<VERSION> with the ID of the image you built.