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"
services:
# backend nodejs API
<<projectName>>-be:
<<projectName>>-api:
build:
context: .
dockerfile: Dockerfile.be.dev
container_name: <<projectName>>-be
container_name: <<projectName>>-api
volumes:
- ./<<projectName>>-be:/app
- ./<<projectName>>-api:/app
- /app/node_modules
user: node
command: bash -c "npm run db:migrate && npm run dev"
command: bash -c "npm run dev"
environment:
# container internal port (not exposed to host)
- PORT=8080
- PORT=8000
# db config
- <<dbNameKey>>=<<projectName>>
- <<dbUserKey>>=databaseUser
......
......@@ -12,6 +12,8 @@ services:
- /home/node/node_modules
command: npx vite --host
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)
- VITE_APP_API_BASE_URL=https://<<projectName>>.dev.bigbang.mil/api
stdin_open: true
......@@ -19,7 +21,7 @@ services:
networks:
- <<projectName>>-net
healthcheck:
test: curl -f http://localhost:8080
test: curl -f http://localhost:$$PORT
timeout: 10s
retries: 5
start_period: 20s
\ No newline at end of file
......@@ -4,4 +4,4 @@ FROM registry1.dso.mil/ironbank/opensource/nodejs/nodejs20:20.11
COPY ./<<projectName>>-api/package.json ./<<projectName>>-api/package-lock.json ./
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