Added new file

This commit is contained in:
MyServer 2025-05-02 18:50:03 +05:00
parent 7ba26a932b
commit 17c7a359b1
3 changed files with 36 additions and 0 deletions

BIN
.docker-compose.yml.swp Normal file

Binary file not shown.

16
Dockerfile Normal file
View 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
View 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