diff --git a/Dockerfile b/Dockerfile index b0c3e7d..8783b8c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,6 @@ COPY . . RUN npm run build -EXPOSE 80 +EXPOSE 8080 CMD ["sh", "-c", "nginx -g 'daemon off;' & npm run start:all"] diff --git a/nginx.conf b/nginx.conf index 9c3841f..0ccf92e 100644 --- a/nginx.conf +++ b/nginx.conf @@ -11,7 +11,7 @@ http { keepalive_timeout 65; server { - listen 80; + listen 8080; location /auth { proxy_pass http://localhost:4001; diff --git a/package.json b/package.json index c4d8f6a..d331e9a 100644 --- a/package.json +++ b/package.json @@ -8,11 +8,11 @@ "scripts": { "build": "nest build", "format": "prettier --write \"apps/**/*.ts\" \"libs/**/*.ts\"", - "start": "nest start", - "start:dev": "nest start --watch", - "backend:dev": "nest start backend --watch", - "auth:dev": "nest start auth --watch", - "start:debug": "nest start --debug --watch", + "start": "npx nest start", + "start:dev": "npx nest start --watch", + "backend:dev": "npx nest start backend --watch", + "auth:dev": "npx nest start auth --watch", + "start:debug": "npx nest start --debug --watch", "start:prod": "node dist/apps/backend/main", "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix", "test": "jest", @@ -20,8 +20,8 @@ "test:cov": "jest --coverage", "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand", "test:e2e": "jest --config ./apps/backend/test/jest-e2e.json", - "start:auth": "nest start auth", - "start:backend": "nest start backend", + "start:auth": "npx nest start auth", + "start:backend": "npx nest start backend", "start:all": "concurrently \"npm run start:auth\" \"npm run start:backend\"" }, "dependencies": {