chore: 端口从 3000 改为 3721 避免冲突
This commit is contained in:
+2
-2
@@ -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
@@ -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
@@ -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:
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user