diff --git a/apps/linker/app.json b/apps/linker/app.json new file mode 100644 index 0000000..10386cb --- /dev/null +++ b/apps/linker/app.json @@ -0,0 +1,35 @@ +{ + "appid": 285, + "appname": "linker", + "apptitle": "Linker", + "apptype": "Tools", + "appTypeCN": "实用工具", + "appversion": [ + {"m_version":"latest","s_version":[]} + ], + "appdesc": "极具特色的异地组网、内网穿透,由P2P打洞(UDP+TCP、IPV4+IPV6) + 服务器实现。让你那些散落在世界各地的联网设备就像在隔壁房间一样轻松访问。", + "appstatus": 1, + "icon": "", + "sort": 98, + "home": "https://linker.snltty.com", + "help": "https://linker-doc.snltty.com", + "cpu": 0, + "mem": 0, + "disk": 10240, + "updateat": 1764839301, + "installed": false, + "reuse": true, + "depend": null, + "field": [ + {"attr":"allow_access","name":"允许外部访问","type":"checkbox","default":true,"suffix":"允许直接通过主机IP+端口访问,如果您设置了域名请不要勾选这里","unit":""}, + {"attr":"cpus","name":"cpu核心数限制","type":"number","default":0,"suffix":"0为不限制,最大可用核心数为: ","unit":""}, + {"attr":"memory_limit","name":"内存限制","type":"number","default":0,"suffix":"0为不限制,最大可用内存为: ","unit":""} + ], + "env": [ + {"key":"app_path","type":"path","default":null,"desc":"应用数据目录"}, + {"key":"host_ip","type":"string","default":null,"desc":"主机IP"}, + {"key":"cpus","type":"number","default":null,"desc":"cpu核心数限制"}, + {"key":"memory_limit","type":"number","default":null,"desc":"内存限制"} + ], + "volumes": {"config": {"type": "path", "desc": "配置目录"}} +} \ No newline at end of file diff --git a/apps/linker/ico-dkapp_linker.png b/apps/linker/ico-dkapp_linker.png new file mode 100644 index 0000000..0edcca5 Binary files /dev/null and b/apps/linker/ico-dkapp_linker.png differ diff --git a/apps/linker/linker/.env b/apps/linker/linker/.env new file mode 100644 index 0000000..e73792b --- /dev/null +++ b/apps/linker/linker/.env @@ -0,0 +1,4 @@ +HOST_IP=0.0.0.0 +CPUS=0 +MEMORY_LIMIT=0 +APP_PATH=/www/dk_project/dk_app/linker \ No newline at end of file diff --git a/apps/linker/linker/docker-compose.yml b/apps/linker/linker/docker-compose.yml new file mode 100644 index 0000000..1049c70 --- /dev/null +++ b/apps/linker/linker/docker-compose.yml @@ -0,0 +1,29 @@ +services: + linker: + image: snltty/linker + container_name: linker + deploy: + resources: + limits: + cpus: ${CPUS} + memory: ${MEMORY_LIMIT} + privileged: true + network_mode: host + restart: always + tty: true + stdin_open: true + devices: + - /dev/net/tun:/dev/net/tun + environment: + - SNLTTY_LINKER_IS_BT=linker + volumes: + - ${APP_PATH}/configs:/app/configs + - ${APP_PATH}/logs:/app/logs + labels: + createdBy: "bt_apps" + #networks: + # - baota_net + +#networks: +# baota_net: +# external: true \ No newline at end of file