Skip to content

Commit

Permalink
Merge pull request #110 from MRColorR/feature/apps-log-rotation
Browse files Browse the repository at this point in the history
Feature/apps log rotation
  • Loading branch information
MRColorR authored Jan 13, 2025
2 parents 69a24d1 + 820a934 commit 1107eb7
Show file tree
Hide file tree
Showing 2 changed files with 152 additions and 50 deletions.
200 changes: 151 additions & 49 deletions config/app-config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"app_config_version": 1.0,
"app_config_version": 1.1,
"apps": [
{
"name": "EARNAPP",
Expand All @@ -17,7 +17,14 @@
"restart": "always",
"cpus": "${APP_CPU_LIMIT_MEDIUM}",
"mem_reservation": "${APP_MEM_RESERV_MEDIUM}",
"mem_limit": "${APP_MEM_LIMIT_MEDIUM}"
"mem_limit": "${APP_MEM_LIMIT_MEDIUM}",
"logging": {
"driver": "json-file",
"options": {
"max-size": "10m",
"max-file": "3"
}
}
},
"compose_config_proxy": {
"network_mode": "service:proxy",
Expand All @@ -44,7 +51,14 @@
"restart": "always",
"cpus": "${APP_CPU_LIMIT_MEDIUM}",
"mem_reservation": "${APP_MEM_RESERV_MEDIUM}",
"mem_limit": "${APP_MEM_LIMIT_MEDIUM}"
"mem_limit": "${APP_MEM_LIMIT_MEDIUM}",
"logging": {
"driver": "json-file",
"options": {
"max-size": "10m",
"max-file": "3"
}
}
},
"compose_config_proxy": {
"network_mode": "service:proxy",
Expand All @@ -68,7 +82,14 @@
"restart": "always",
"cpus": "${APP_CPU_LIMIT_LITTLE}",
"mem_reservation": "${APP_MEM_RESERV_LITTLE}",
"mem_limit": "${APP_MEM_LIMIT_LITTLE}"
"mem_limit": "${APP_MEM_LIMIT_LITTLE}",
"logging": {
"driver": "json-file",
"options": {
"max-size": "10m",
"max-file": "3"
}
}
},
"compose_config_proxy": {
"network_mode": "service:proxy",
Expand All @@ -91,7 +112,14 @@
"restart": "always",
"cpus": "${APP_CPU_LIMIT_MEDIUM}",
"mem_reservation": "${APP_MEM_RESERV_MEDIUM}",
"mem_limit": "${APP_MEM_LIMIT_MEDIUM}"
"mem_limit": "${APP_MEM_LIMIT_MEDIUM}",
"logging": {
"driver": "json-file",
"options": {
"max-size": "10m",
"max-file": "3"
}
}
},
"compose_config_proxy": {
"network_mode": "service:proxy",
Expand All @@ -114,7 +142,14 @@
"restart": "always",
"cpus": "${APP_CPU_LIMIT_LITTLE}",
"mem_reservation": "${APP_MEM_RESERV_LITTLE}",
"mem_limit": "${APP_MEM_LIMIT_LITTLE}"
"mem_limit": "${APP_MEM_LIMIT_LITTLE}",
"logging": {
"driver": "json-file",
"options": {
"max-size": "10m",
"max-file": "3"
}
}
},
"compose_config_proxy": {
"network_mode": "service:proxy",
Expand All @@ -139,7 +174,14 @@
"restart": "always",
"cpus": "${APP_CPU_LIMIT_MEDIUM}",
"mem_reservation": "${APP_MEM_RESERV_MEDIUM}",
"mem_limit": "${APP_MEM_LIMIT_MEDIUM}"
"mem_limit": "${APP_MEM_LIMIT_MEDIUM}",
"logging": {
"driver": "json-file",
"options": {
"max-size": "10m",
"max-file": "3"
}
}
},
"compose_config_proxy": {
"network_mode": "service:proxy",
Expand All @@ -162,7 +204,14 @@
"restart": "always",
"cpus": "${APP_CPU_LIMIT_MEDIUM}",
"mem_reservation": "${APP_MEM_RESERV_MEDIUM}",
"mem_limit": "${APP_MEM_LIMIT_MEDIUM}"
"mem_limit": "${APP_MEM_LIMIT_MEDIUM}",
"logging": {
"driver": "json-file",
"options": {
"max-size": "10m",
"max-file": "3"
}
}
},
"compose_config_proxy": {
"network_mode": "service:proxy",
Expand All @@ -188,7 +237,14 @@
"restart": "always",
"cpus": "${APP_CPU_LIMIT_BIG}",
"mem_reservation": "${APP_MEM_RESERV_BIG}",
"mem_limit": "${APP_MEM_LIMIT_BIG}"
"mem_limit": "${APP_MEM_LIMIT_BIG}",
"logging": {
"driver": "json-file",
"options": {
"max-size": "10m",
"max-file": "3"
}
}
},
"compose_config_proxy": {
"network_mode": "service:proxy",
Expand All @@ -214,7 +270,14 @@
"restart": "always",
"cpus": "${APP_CPU_LIMIT_BIG}",
"mem_reservation": "${APP_MEM_RESERV_BIG}",
"mem_limit": "${APP_MEM_LIMIT_BIG}"
"mem_limit": "${APP_MEM_LIMIT_BIG}",
"logging": {
"driver": "json-file",
"options": {
"max-size": "10m",
"max-file": "3"
}
}
},
"compose_config_proxy": {
"network_mode": "service:proxy",
Expand All @@ -240,7 +303,14 @@
"restart": "always",
"cpus": "${APP_CPU_LIMIT_BIG}",
"mem_reservation": "${APP_MEM_RESERV_BIG}",
"mem_limit": "${APP_MEM_LIMIT_BIG}"
"mem_limit": "${APP_MEM_LIMIT_BIG}",
"logging": {
"driver": "json-file",
"options": {
"max-size": "10m",
"max-file": "3"
}
}
},
"compose_config_proxy": {
"network_mode": "service:proxy",
Expand All @@ -251,35 +321,6 @@
"password": {}
}
},
{
"name": "SPEEDSHARE",
"dashboard": "https://dashboard.speedshare.app/",
"link": "https://speedshare.app/?ref=mindlessnerd",
"compose_config": {
"container_name": "${DEVICE_NAME}_speedshare",
"hostname": "${DEVICE_NAME}_speedshare",
"image": "mrcolorrain/speedshare:latest",
"environment": [
"CODE=$SPEEDSHARE_CODE",
"SPEEDSHARE_UUID=$SPEEDSHARE_UUID"
],
"restart": "always",
"cpus": "${APP_CPU_LIMIT_BIG}",
"mem_reservation": "${APP_MEM_RESERV_BIG}",
"mem_limit": "${APP_MEM_LIMIT_BIG}"
},
"compose_config_proxy": {
"network_mode": "service:proxy",
"hostname": null
},
"flags": {
"code": {},
"uuid": {
"length": 32,
"claimURLBase": "Speedshare nodes are automatically claimed. After starting it, go to the app's dashboard to see it. Its UUID is: "
}
}
},
{
"name": "GRASS",
"dashboard": "https://app.getgrass.io/dashboard",
Expand All @@ -295,7 +336,14 @@
"restart": "always",
"cpus": "${APP_CPU_LIMIT_BIG}",
"mem_reservation": "${APP_MEM_RESERV_BIG}",
"mem_limit": "${APP_MEM_LIMIT_BIG}"
"mem_limit": "${APP_MEM_LIMIT_BIG}",
"logging": {
"driver": "json-file",
"options": {
"max-size": "10m",
"max-file": "3"
}
}
},
"compose_config_proxy": {
"network_mode": "service:proxy",
Expand All @@ -321,7 +369,14 @@
"restart": "always",
"cpus": "${APP_CPU_LIMIT_BIG}",
"mem_reservation": "${APP_MEM_RESERV_BIG}",
"mem_limit": "${APP_MEM_LIMIT_BIG}"
"mem_limit": "${APP_MEM_LIMIT_BIG}",
"logging": {
"driver": "json-file",
"options": {
"max-size": "10m",
"max-file": "3"
}
}
},
"compose_config_proxy": {
"network_mode": "service:proxy",
Expand All @@ -341,13 +396,18 @@
"hostname": "${DEVICE_NAME}_packetshare",
"image": "packetshare/packetshare:latest",
"command": "-accept-tos -email=${PACKETSHARE_EMAIL} -password=${PACKETSHARE_PASSWORD}",
"environment": [
"PACKETSHARE_DUMMY=''"
],
"environment": ["PACKETSHARE_DUMMY=''"],
"restart": "always",
"cpus": "${APP_CPU_LIMIT_MEDIUM}",
"mem_reservation": "${APP_MEM_RESERV_MEDIUM}",
"mem_limit": "${APP_MEM_LIMIT_MEDIUM}"
"mem_limit": "${APP_MEM_LIMIT_MEDIUM}",
"logging": {
"driver": "json-file",
"options": {
"max-size": "10m",
"max-file": "3"
}
}
},
"compose_config_proxy": {
"network_mode": "service:proxy",
Expand Down Expand Up @@ -376,7 +436,14 @@
"restart": "always",
"cpus": "${APP_CPU_LIMIT_HUGE}",
"mem_reservation": "${APP_MEM_RESERV_HUGE}",
"mem_limit": "${APP_MEM_LIMIT_HUGE}"
"mem_limit": "${APP_MEM_LIMIT_HUGE}",
"logging": {
"driver": "json-file",
"options": {
"max-size": "10m",
"max-file": "3"
}
}
},
"compose_config_proxy": {
"network_mode": "service:proxy",
Expand All @@ -402,7 +469,14 @@
"restart": "always",
"cpus": "${APP_CPU_LIMIT_HUGE}",
"mem_reservation": "${APP_MEM_RESERV_HUGE}",
"mem_limit": "${APP_MEM_LIMIT_HUGE}"
"mem_limit": "${APP_MEM_LIMIT_HUGE}",
"logging": {
"driver": "json-file",
"options": {
"max-size": "10m",
"max-file": "3"
}
}
},
"compose_config_proxy": {
"network_mode": "service:proxy",
Expand All @@ -418,6 +492,34 @@
}
],
"removed-apps": [

{
"name": "SPEEDSHARE",
"dashboard": "https://dashboard.speedshare.app/",
"link": "https://speedshare.app/?ref=mindlessnerd",
"compose_config": {
"container_name": "${DEVICE_NAME}_speedshare",
"hostname": "${DEVICE_NAME}_speedshare",
"image": "mrcolorrain/speedshare:latest",
"environment": [
"CODE=$SPEEDSHARE_CODE",
"SPEEDSHARE_UUID=$SPEEDSHARE_UUID"
],
"restart": "always",
"cpus": "${APP_CPU_LIMIT_BIG}",
"mem_reservation": "${APP_MEM_RESERV_BIG}",
"mem_limit": "${APP_MEM_LIMIT_BIG}"
},
"compose_config_proxy": {
"network_mode": "service:proxy",
"hostname": null
},
"flags": {
"code": {},
"uuid": {
"length": 32,
"claimURLBase": "Speedshare nodes are automatically claimed. After starting it, go to the app's dashboard to see it. Its UUID is: "
}
}
}
]
}
2 changes: 1 addition & 1 deletion config/m4b-config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"project": {
"project_version": "4.5.4",
"project_version": "4.5.5",
"compose_project_name": "money4band",
"ds_project_server_url": "https://discord.com/invite/Fq8eeazBAD"
},
Expand Down

0 comments on commit 1107eb7

Please sign in to comment.