diff --git a/Dockerfile b/Dockerfile index f89b10c..08d5ea3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" diff --git a/Jenkinsfile b/Jenkinsfile index 2756cf9..a28a884 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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} \ diff --git a/docker-compose.yml b/docker-compose.yml index 54fb4e9..90dba2e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: diff --git a/src/__tests__/helpers/api-test-utils.ts b/src/__tests__/helpers/api-test-utils.ts index 948a085..c76884d 100644 --- a/src/__tests__/helpers/api-test-utils.ts +++ b/src/__tests__/helpers/api-test-utils.ts @@ -14,7 +14,7 @@ export function createRequest( init.body = JSON.stringify(body); (init.headers as Record)["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(