added docker

This commit is contained in:
Sergey Yarkov 2025-05-08 18:37:50 +03:00
parent b10886c0a7
commit b9b3d710d8
6 changed files with 2074 additions and 1025 deletions

3
.dockerignore Normal file
View File

@ -0,0 +1,3 @@
node_modules
.vscode
.git

7
compose.yml Normal file
View File

@ -0,0 +1,7 @@
services:
server:
container_name: mblogger-server
restart: always
build: .
ports:
- 9954:3000

View File

@ -1,5 +1,5 @@
import 'dotenv/config';
import "dotenv/config";
export default {
SERVER_PORT: Number.parseInt(process.env?.SERVER_PORT, 10) || 3000,
SERVER_PORT: 3000,
};

BIN
data.db

Binary file not shown.

8
dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM node:22-alpine
WORKDIR /app
COPY package*.json .
RUN npm ci
COPY . .
EXPOSE 3000
CMD [ "node", "server.js" ]

3077
package-lock.json generated

File diff suppressed because it is too large Load Diff