UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 484fb68e authored by Patrick Tafoya's avatar Patrick Tafoya
Browse files

Template fixes.

parent 39df7b34
No related branches found
No related tags found
No related merge requests found
...@@ -2,19 +2,19 @@ version: "3" ...@@ -2,19 +2,19 @@ version: "3"
services: services:
# backend nodejs API # backend nodejs API
<<projectName>>-be: <<projectName>>-api:
build: build:
context: . context: .
dockerfile: Dockerfile.be.dev dockerfile: Dockerfile.be.dev
container_name: <<projectName>>-be container_name: <<projectName>>-api
volumes: volumes:
- ./<<projectName>>-be:/app - ./<<projectName>>-api:/app
- /app/node_modules - /app/node_modules
user: node user: node
command: bash -c "npm run db:migrate && npm run dev" command: bash -c "npm run dev"
environment: environment:
# container internal port (not exposed to host) # container internal port (not exposed to host)
- PORT=8080 - PORT=8000
# db config # db config
- <<dbNameKey>>=<<projectName>> - <<dbNameKey>>=<<projectName>>
- <<dbUserKey>>=databaseUser - <<dbUserKey>>=databaseUser
......
...@@ -12,6 +12,8 @@ services: ...@@ -12,6 +12,8 @@ services:
- /home/node/node_modules - /home/node/node_modules
command: npx vite --host command: npx vite --host
environment: environment:
- # container internal port (not exposed to host)
- PORT=8000
# this is the url the browser uses, so it needs to be the external url (going through ingress to hit the backend) # this is the url the browser uses, so it needs to be the external url (going through ingress to hit the backend)
- VITE_APP_API_BASE_URL=https://<<projectName>>.dev.bigbang.mil/api - VITE_APP_API_BASE_URL=https://<<projectName>>.dev.bigbang.mil/api
stdin_open: true stdin_open: true
...@@ -19,7 +21,7 @@ services: ...@@ -19,7 +21,7 @@ services:
networks: networks:
- <<projectName>>-net - <<projectName>>-net
healthcheck: healthcheck:
test: curl -f http://localhost:8080 test: curl -f http://localhost:$$PORT
timeout: 10s timeout: 10s
retries: 5 retries: 5
start_period: 20s start_period: 20s
\ No newline at end of file
...@@ -4,4 +4,4 @@ FROM registry1.dso.mil/ironbank/opensource/nodejs/nodejs20:20.11 ...@@ -4,4 +4,4 @@ FROM registry1.dso.mil/ironbank/opensource/nodejs/nodejs20:20.11
COPY ./<<projectName>>-api/package.json ./<<projectName>>-api/package-lock.json ./ COPY ./<<projectName>>-api/package.json ./<<projectName>>-api/package-lock.json ./
RUN npm ci RUN npm ci
EXPOSE 8080 EXPOSE 8000
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment