Add Dockerfiles
This commit is contained in:
parent
a85225612e
commit
0f0c9b7902
3 changed files with 32 additions and 0 deletions
1
api/.dockerignore
Normal file
1
api/.dockerignore
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
**/node_modules/**
|
||||||
17
api/Dockerfile
Normal file
17
api/Dockerfile
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
FROM node:20-alpine
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY ./package*.json ./
|
||||||
|
|
||||||
|
RUN npm ci
|
||||||
|
|
||||||
|
COPY . ./
|
||||||
|
|
||||||
|
EXPOSE 5172
|
||||||
|
EXPOSE 5170
|
||||||
|
|
||||||
|
ARG ENVIRONMENT
|
||||||
|
ENV ENVIRONMENT ${ENVIRONMENT}
|
||||||
|
|
||||||
|
CMD npm run ${ENVIRONMENT}
|
||||||
14
api/docker-compose.yaml
Normal file
14
api/docker-compose.yaml
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
services:
|
||||||
|
shiftsync-web:
|
||||||
|
image: 'docker.io/john4064/shiftsync:prod_api'
|
||||||
|
environment:
|
||||||
|
- 'TESTVAR=${COOLIFY_VAR}'
|
||||||
|
volumes:
|
||||||
|
- /home/jparkhurst/shiftsync:/shiftsync
|
||||||
|
ports:
|
||||||
|
- "5172:5172"
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "wget", "-qO-", "http://localhost:5172"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
Loading…
Reference in a new issue