remove docker

This commit is contained in:
2026-01-13 15:35:39 +03:00
parent 5fa0229aab
commit 349aebcf1e
4 changed files with 5 additions and 47 deletions
-18
View File
@@ -1,18 +0,0 @@
FROM node:24-alpine
RUN corepack enable && \
corepack prepare pnpm@latest --activate
WORKDIR /app
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
COPY . .
RUN pnpm run build
EXPOSE 3000
CMD ["node", "dist/server.js"]
-28
View File
@@ -1,28 +0,0 @@
services:
mongo:
image: mongo:8
container_name: order-service-mongo
ports:
- "27017:27017"
volumes:
- mongo-data:/data/db
entrypoint: >
bash -c "
mongod --replSet rs0 --bind_ip_all --port 27017 &
until mongosh --port 27017 --eval 'db.runCommand({ping:1})' &>/dev/null; do
echo 'Waiting for MongoDB...'
sleep 2
done;
echo 'Initializing replica set...';
mongosh --port 27017 --eval \"
try {
rs.initiate({_id: 'rs0', members: [{_id: 0, host: 'localhost:27017'}]});
} catch (e) {
print('Replica set already initialized');
}
\";
wait"
restart: unless-stopped
volumes:
mongo-data:
+3
View File
@@ -5,6 +5,9 @@
"type": "module",
"main": "index.js",
"scripts": {
"build": "tsc",
"start": "node dist/server.js",
"dev": "nodemon src/server.ts",
"lint": "eslint . --ext .ts",
"lint:fix": "eslint . --ext .ts --fix",
"prettier": "prettier --check .",
+2 -1
View File
@@ -1,6 +1,7 @@
import app from "./app.js";
import { env } from "./config/env.js";
import { connectDB } from "./config/db.js";
import app from "./app.js";
async function startServer() {
await connectDB();