changes in config

This commit is contained in:
2024-09-29 09:27:52 +05:30
parent a1636c6679
commit ac30a9aabd
5 changed files with 61 additions and 4 deletions

25
Dockerfile Normal file
View File

@ -0,0 +1,25 @@
### STAGE 1: Build ###
FROM node:16.13 AS build
WORKDIR /usr/src/app
COPY package.json package-lock.json ./
RUN npm install --save --legacy-peer-deps
COPY . .
RUN npm run build --prod
### STAGE 2: Run ###
FROM nginx:1.17.1-alpine
# COPY nginx.conf /etc/nginx/nginx.conf
COPY --from=build /usr/src/app/dist /usr/share/nginx/html
# Expose port 80 to the Docker host, so we can access it
# from the outside.
EXPOSE 80
ENTRYPOINT ["nginx","-g","daemon off;"]

30
docker-compose.yml Normal file
View File

@ -0,0 +1,30 @@
version: '3'
services:
cmc-main-frontend:
build:
context: ./
dockerfile: Dockerfile
restart: always
ports:
- "8071:80"
networks:
- internal-network
environment:
- NODE_ENV=production
cmc-admin-frontend:
build:
context: cmcNew/cmc/support-portal-frontend/
dockerfile: Dockerfile
restart: always
ports:
- "8072:80"
networks:
- internal-network
environment:
- NODE_ENV=production
networks:
internal-network:
driver: bridge

View File

@ -99,7 +99,7 @@ const routes: Routes = [
];
@NgModule({
imports: [RouterModule.forRoot(routes, { scrollPositionRestoration: 'enabled' })],
imports: [RouterModule.forRoot(routes, { useHash: true,scrollPositionRestoration: 'enabled' })],
exports: [RouterModule],
})
export class AppRoutingModule {}

View File

@ -9,7 +9,9 @@ export const environment = {
// apiUrl: 'http://portal-bean.shyshkin.net',
// apiUrl: 'http://supportportalbackend-env.eba-wfr5wya3.eu-north-1.elasticbeanstalk.com',
// apiUrl: 'http://support-portal.shyshkin.net:5000',
apiUrl: 'http://localhost:8080',
// apiUrl: 'http://localhost:8080',
apiUrl: 'http://cncbackend.techzoos.in',
publicUrls: ['/user/login', '/user/register', '/user/*/profile-image', '/user/*/profile-image/**']
};

View File

@ -1,12 +1,12 @@
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<base href="/" />
<base href="." />
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Plurk Tailwind CSS Multipurpose Landing Templates</title>
<title>cmc - vellore</title>
<!-- Favicon -->
<link rel="icon" type="icon" href="assets/images/favicon.png" />
<!-- Fonts -->