diff --git a/.env b/.env new file mode 100644 index 0000000..b8d5625 --- /dev/null +++ b/.env @@ -0,0 +1,9 @@ +DIGIFI_PORT=5173 + +# Social Links +FACEBOOK_URL=https://www.facebook.com +TWITTER_URL=https://twitter.com +INSTAGRAM_URL=https://www.instagram.com + +# BACKEND END POINTS +VITE_USERS_ENDPOINT='https://digifi-apidev.chiefsoft.net/digiusers/v1' \ No newline at end of file diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..71ce632 --- /dev/null +++ b/.env.development @@ -0,0 +1,9 @@ +DIGIFI_PORT=5173 + +# Social Links +VITE_FACEBOOK_URL=https://www.facebook.com +VITE_TWITTER_URL=https://twitter.com +VITE_INSTAGRAM_URL=https://www.instagram.com + +# BACKEND END POINTS +VITE_USERS_ENDPOINT='https://digifi-apidev.chiefsoft.net/digiusers/v1' \ No newline at end of file diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..b8d5625 --- /dev/null +++ b/.env.production @@ -0,0 +1,9 @@ +DIGIFI_PORT=5173 + +# Social Links +FACEBOOK_URL=https://www.facebook.com +TWITTER_URL=https://twitter.com +INSTAGRAM_URL=https://www.instagram.com + +# BACKEND END POINTS +VITE_USERS_ENDPOINT='https://digifi-apidev.chiefsoft.net/digiusers/v1' \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a7db1a9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +# FROM node:erbium +# pull the base image +# FROM node:alpine +FROM node:18-alpine + +WORKDIR /app + +COPY package.json . + +RUN npm install + +COPY . . + +# RUN npm run build + + +# CMD [ "npm", "run", "preview" ] +CMD [ "npm", "run", "dev" ,"--", "--host"] + diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..8d80987 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,23 @@ +version: '3' +services: + digifi-employer2: + build: + context: . + dockerfile: Dockerfile + restart: unless-stopped + volumes: + - ./:/app + - '/app/node_modules' + ports: + - 6036:5173 + expose: + - "5173" + extra_hosts: + - digifi-apidev.chiefsoft.net:10.10.33.15 + - backend.wrenchboard.api.test:10.10.33.15 + environment: + - PORT=${DIGIFI_PORT} + tty: true + stdin_open: true +volumes: + src: