chore: 端口从 3000 改为 3721 避免冲突

This commit is contained in:
2026-03-02 01:07:45 +08:00
parent 7fd1005e03
commit ea49ce6081
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -42,8 +42,8 @@ RUN chmod +x docker-entrypoint.sh
RUN mkdir -p /app/data && chown nextjs:nodejs /app/data
USER nextjs
EXPOSE 3000
ENV PORT=3000
EXPOSE 3721
ENV PORT=3721
ENV HOSTNAME="0.0.0.0"
ENV DATABASE_URL="file:/app/data/prod.db"
Vendored
+1 -1
View File
@@ -34,7 +34,7 @@ pipeline {
docker run -d \
--name ${APP_NAME} \
--network nginx \
-p 3000:3000 \
-p 3721:3721 \
-v /data/${APP_NAME}:/app/data \
-e DATABASE_URL=file:/app/data/prod.db \
-e AMAP_API_KEY=${AMAP_KEY} \
+1 -1
View File
@@ -4,7 +4,7 @@ services:
image: no-whatever:latest
container_name: no-whatever
ports:
- "3000:3000"
- "3721:3721"
volumes:
- /data/no-whatever:/app/data
environment:
+1 -1
View File
@@ -14,7 +14,7 @@ export function createRequest(
init.body = JSON.stringify(body);
(init.headers as Record<string, string>)["content-type"] = "application/json";
}
return new NextRequest(new URL(url, "http://localhost:3000"), init);
return new NextRequest(new URL(url, "http://localhost:3721"), init);
}
export function createRouteContext(