server change

This commit is contained in:
root
2026-03-07 10:51:25 +00:00
parent d7ae6c64f3
commit a0e6d69ae0
3 changed files with 11 additions and 2 deletions
+5
View File
@@ -39,3 +39,8 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts
watch_git.sh
git_watch.log
deploy.sh
+1 -1
View File
@@ -8,7 +8,7 @@ COPY package.json package-lock.json* yarn.lock* ./
# Install dependencies
RUN \
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
if [ -f yarn.lock ]; then yarn; \
elif [ -f package-lock.json ]; then npm ci; \
else echo "Lockfile not found." && exit 1; \
fi
+5 -1
View File
@@ -4,9 +4,13 @@ services:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
- "3609:3000"
environment:
- NODE_ENV=production
- BALE_BOT_TOKEN=1203122702:hA91klC9rD8aI8EPqVmV9X6VfZbyvWy9mvg
- BALE_CHAT_ID=6309891314
- TELEGRAM_CHAT_ID=6309891314
- TELEGRAM_BOT_TOKEN=1203122702:hA91klC9rD8aI8EPqVmV9X6VfZbyvWy9mvg
restart: unless-stopped
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"]