From f5859a1bb2fb789fa93c359759adbf12e09d45d0 Mon Sep 17 00:00:00 2001 From: wajeht <58354193+wajeht@users.noreply.github.com> Date: Fri, 22 Sep 2023 21:05:19 -0500 Subject: [PATCH] feat: chagne some vervage --- .dockerignore | 2 ++ Dockerfile.dev | 6 ++++-- docker-compose.dev.yml | 6 +++--- src/views/pages/about.html | 12 ++++++++++++ 4 files changed, 21 insertions(+), 5 deletions(-) diff --git a/.dockerignore b/.dockerignore index a1d41c8..9605f70 100644 --- a/.dockerignore +++ b/.dockerignore @@ -10,3 +10,5 @@ node_modules dist deploy.sh README.md +mongo-data +coverage diff --git a/Dockerfile.dev b/Dockerfile.dev index 1937f33..ff8ba53 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -1,5 +1,7 @@ FROM node:alpine +RUN apk --no-cache add curl + ENV ENV development WORKDIR /usr/src/app @@ -11,8 +13,8 @@ COPY ./ ./ RUN npm install -EXPOSE 8080 +EXPOSE 8082 CMD ["npm", "run", "dev"] -HEALTHCHECK --interval=30s --timeout=15s CMD node healthcheck.js +HEALTHCHECK CMD curl -f http://localhost:8082/api/health-check || exit 1 diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index dbb1155..4f55695 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -7,7 +7,7 @@ services: context: ./ dockerfile: ./Dockerfile.dev ports: - - '8080:8080' + - '8082:8082' volumes: - ./:/usr/src/app - /usr/src/app/node_modules @@ -69,13 +69,13 @@ services: - ME_CONFIG_MONGODB_AUTH_DATABASE=close-powerlifting - ME_CONFIG_MONGODB_ADMINUSERNAME=username - ME_CONFIG_MONGODB_ADMINPASSWORD=password - - VCAP_APP_PORT=8082 + - VCAP_APP_PORT=8086 # - ME_CONFIG_BASICAUTH_USERNAME=username # enable basic auth for ui # - ME_CONFIG_BASICAUTH_PASSWORD=password depends_on: - mongodb ports: - - '8082:8082' + - '8086:8086' networks: - close-powerlifting-network diff --git a/src/views/pages/about.html b/src/views/pages/about.html index 46dc1fe..da8086e 100644 --- a/src/views/pages/about.html +++ b/src/views/pages/about.html @@ -105,6 +105,18 @@
+ You will receive a quota of 500 API calls every month, and this limit will reset at the + beginning of each new month. If you need more than 500 calls, please request additional + resources via our + contact page ↗️. +