server change
This commit is contained in:
@@ -39,3 +39,8 @@ yarn-error.log*
|
||||
# typescript
|
||||
*.tsbuildinfo
|
||||
next-env.d.ts
|
||||
watch_git.sh
|
||||
|
||||
git_watch.log
|
||||
|
||||
deploy.sh
|
||||
|
||||
+1
-1
@@ -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
@@ -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)})"]
|
||||
|
||||
Reference in New Issue
Block a user