mirror of
https://github.com/anatolykopyl/vk-bingo.git
synced 2026-03-26 21:04:26 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5af681939e | |||
| 6b161f2e2c |
@@ -1,4 +1,5 @@
|
|||||||
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,11 +1,9 @@
|
|||||||
FROM node:16-alpine
|
FROM node:20-alpine
|
||||||
WORKDIR /app
|
LABEL authors="anatolykopyl"
|
||||||
|
|
||||||
# Copy and download dependencies
|
WORKDIR /usr/node/app
|
||||||
COPY package.json package-lock.json ./
|
COPY package.json yarn.lock ./
|
||||||
RUN npm install
|
|
||||||
|
RUN yarn install --frozen-lockfile
|
||||||
|
|
||||||
# Copy the source files into the image
|
|
||||||
COPY . .
|
COPY . .
|
||||||
EXPOSE 3000
|
|
||||||
CMD npm start
|
|
||||||
|
|||||||
11
backend/docker-compose.yml
Normal file
11
backend/docker-compose.yml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
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,10 +219,5 @@ const client = new MongoClient(process.env.URI, { useUnifiedTopology: true });
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
app.listen(
|
app.listen(process.env.PORT, () => console.log(`Server started on ${process.env.PORT}`));
|
||||||
3000,
|
|
||||||
'0.0.0.0',
|
|
||||||
511,
|
|
||||||
() => console.log(`Server started on port ${3000}`),
|
|
||||||
);
|
|
||||||
})();
|
})();
|
||||||
|
|||||||
5192
backend/package-lock.json
generated
5192
backend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -4,8 +4,7 @@
|
|||||||
"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
Normal file
1800
backend/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
30040
frontend/package-lock.json
generated
30040
frontend/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
9001
frontend/yarn.lock
Normal file
9001
frontend/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user