edit docker files | packages

This commit is contained in:
Chika 2020-11-14 16:16:24 +03:00
parent d966d65a5f
commit e37462d176
3 changed files with 25 additions and 6 deletions

View File

@ -1,12 +1,12 @@
FROM node:12-alpine
FROM node:14-alpine
WORKDIR /home/app
COPY package*.json ./
COPY . .
RUN npm install
RUN yarn
COPY build ./
RUN yarn build
EXPOSE 3001

20
docker-compose.yml Normal file
View File

@ -0,0 +1,20 @@
version: '3.3'
services:
evocalculator:
container_name: evocalc
build: .
# ports:
# - "3001:3001"
networks:
- web
labels:
- 'traefik.enable=true'
- 'traefik.backend=evocalc'
- 'traefik.docker.network=web'
- 'traefik.http.routers.evocalc.rule=Host(`calculator.evoleasing.ru`)'
- 'traefik.http.routers.evocalc.entrypoints=web-secure'
- 'traefik.http.routers.evocalc.tls.certresolver=le'
networks:
web:
external: true

View File

@ -31,7 +31,6 @@
"mobx": "^6.0.0",
"mobx-react-lite": "^3.0.0",
"morgan": "^1.10.0",
"mssql": "^6.2.1",
"nodemon": "^2.0.4",
"normalize.css": "^8.0.1",
"pluralize": "^8.0.0",
@ -45,7 +44,6 @@
"styled-components": "^5.1.1",
"styled-system": "^5.1.5",
"ts-loader": "^8.0.2",
"typeorm": "^0.2.25",
"typescript": "3.9.7",
"use-debounce": "^3.4.3",
"validator": "^13.1.1"
@ -68,6 +66,7 @@
"@types/styled-components": "^5.1.2",
"@types/styled-system": "^5.1.10",
"agentkeepalive": "^4.1.3",
"cross-env": "^7.0.2",
"dotenv": "^8.2.0",
"faker": "^5.1.0",
"http-proxy-middleware": "^1.0.6",