Added new file
This commit is contained in:
parent
7ba26a932b
commit
17c7a359b1
BIN
.docker-compose.yml.swp
Normal file
BIN
.docker-compose.yml.swp
Normal file
Binary file not shown.
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
# Dockerfile
|
||||||
|
|
||||||
|
FROM node:20-alpine
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY package*.json ./
|
||||||
|
RUN npm ci
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
EXPOSE 39890
|
||||||
|
|
||||||
|
CMD ["npm", "run", "preview", "--", "--port", "39890"]
|
20
docker-compose.yml
Normal file
20
docker-compose.yml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
kb-personal:
|
||||||
|
build: .
|
||||||
|
container_name: kb-personal
|
||||||
|
networks:
|
||||||
|
- proxy-net
|
||||||
|
expose:
|
||||||
|
- 39890
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.kb-personal.rule=Host(`wiki.sinenikolsky.ru`)"
|
||||||
|
- "traefik.http.routers.kb-personal.entrypoints=http"
|
||||||
|
- "traefik.http.services.kb-personal.loadbalancer.server.port=39890"
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
networks:
|
||||||
|
proxy-net:
|
||||||
|
external: true
|
Loading…
x
Reference in New Issue
Block a user