vps部署

https://s1sqi6e3xb.feishu.cn/docx/XwAQdYGgGoQU2wxXWPjchdMlnfg?from=from_copylink
docker 部署
官方地址:
GitHub – SaintWe/Sub-Store-Docker
xream/sub-store
https://hub.docker.com/r/xream/sub-store/tags
Sub-Store 相关教程:
https://xream.notion.site/Sub-Store-abe6a96944724dc6a36833d5c9ab7c87
services:
sub-store:
image: xream/sub-store:http-meta
container_name: sub-store
restart: always
network_mode: host
environment:
SUB_STORE_BACKEND_API_HOST: 127.0.0.1 #本地ip
SUB_STORE_BACKEND_API_PORT: 3001
SUB_STORE_BACKEND_MERGE: true
SUB_STORE_FRONTEND_BACKEND_PATH: /2cXaAxRGfddmGz2yx1wA
# HTTP-META 的, 一般不用改
PORT: 9876
HOST: 127.0.0.1 #本地ip
volumes:
- ./data:/opt/app/data
services:
sub-store:
image: xream/sub-store:http-meta
container_name: sub-store
restart: always
network_mode: host
environment:
SUB_STORE_BACKEND_API_HOST: 10.10.10.12
SUB_STORE_BACKEND_API_PORT: 3001
SUB_STORE_BACKEND_MERGE: true
SUB_STORE_FRONTEND_BACKEND_PATH: /2cXaAxRGfddmGz2yx1wA
# HTTP-META 的, 一般不用改
PORT: 9876
HOST: 10.10.10.12
volumes:
- ./data:/opt/app/data
一键配置打开 本地前端+本地后端
http://10.10.10.12:3001/?api=http://10.10.10.12:3001/2cXaAxRGfddmGz2yx1wA
http://127.0.0.1:3001?api=http://127.0.0.1:3001/2cXaAxRGfddmGz2yx1wA
意思是 后端地址为 http://127.0.0.1:3001/2cXaAxRGfddmGz2yx1wA
简单验证一下 http://127.0.0.1:3001/2cXaAxRGfddmGz2yx1wA/api/utils/env 可以看到版本信息
同样此 URL 也可以作为健康检查的 URL