mirror of
https://github.com/anatolykopyl/vk-bingo.git
synced 2026-03-26 21:04:26 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 091d6c8d46 |
@@ -1,5 +1,4 @@
|
|||||||
NODE_ENV=production
|
NODE_ENV=production
|
||||||
PORT=3031
|
|
||||||
URI=mongodb://localhost?retryWrites=true&w=majority
|
URI=mongodb://localhost?retryWrites=true&w=majority
|
||||||
FRONTEND=https://bingo.anatolykopyl.ru
|
FRONTEND=https://bingo.anatolykopyl.ru
|
||||||
DB_NAME=vk_bingo
|
DB_NAME=vk_bingo
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
FROM node:20-alpine
|
FROM node:16-alpine
|
||||||
LABEL authors="anatolykopyl"
|
WORKDIR /app
|
||||||
|
|
||||||
WORKDIR /usr/node/app
|
# Copy and download dependencies
|
||||||
COPY package.json yarn.lock ./
|
COPY package.json package-lock.json ./
|
||||||
|
RUN npm install
|
||||||
RUN yarn install --frozen-lockfile
|
|
||||||
|
|
||||||
|
# Copy the source files into the image
|
||||||
COPY . .
|
COPY . .
|
||||||
|
EXPOSE 3000
|
||||||
|
CMD npm start
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
version: '3'
|
|
||||||
|
|
||||||
services:
|
|
||||||
flexpatrol-bingo:
|
|
||||||
image: git.radner.ru/anatolykopyl/flexpatrol-bingo:latest
|
|
||||||
container_name: flexpatrol-bingo
|
|
||||||
working_dir: /usr/node/app
|
|
||||||
ports:
|
|
||||||
- "3004:3000"
|
|
||||||
command: >
|
|
||||||
sh -c "node index.js"
|
|
||||||
@@ -219,5 +219,10 @@ const client = new MongoClient(process.env.URI, { useUnifiedTopology: true });
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
app.listen(process.env.PORT, () => console.log(`Server started on ${process.env.PORT}`));
|
app.listen(
|
||||||
|
3000,
|
||||||
|
'0.0.0.0',
|
||||||
|
511,
|
||||||
|
() => console.log(`Server started on port ${3000}`),
|
||||||
|
);
|
||||||
})();
|
})();
|
||||||
|
|||||||
5192
backend/package-lock.json
generated
Normal file
5192
backend/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -4,7 +4,8 @@
|
|||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nodemon index.js"
|
"dev": "nodemon index.js",
|
||||||
|
"start": "node index.js"
|
||||||
},
|
},
|
||||||
"author": "Anatoly Kopyl",
|
"author": "Anatoly Kopyl",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
|
|||||||
1800
backend/yarn.lock
1800
backend/yarn.lock
File diff suppressed because it is too large
Load Diff
30040
frontend/package-lock.json
generated
Normal file
30040
frontend/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
9001
frontend/yarn.lock
9001
frontend/yarn.lock
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user