server change
This commit is contained in:
@@ -39,3 +39,8 @@ yarn-error.log*
|
|||||||
# typescript
|
# typescript
|
||||||
*.tsbuildinfo
|
*.tsbuildinfo
|
||||||
next-env.d.ts
|
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
|
# Install dependencies
|
||||||
RUN \
|
RUN \
|
||||||
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
|
if [ -f yarn.lock ]; then yarn; \
|
||||||
elif [ -f package-lock.json ]; then npm ci; \
|
elif [ -f package-lock.json ]; then npm ci; \
|
||||||
else echo "Lockfile not found." && exit 1; \
|
else echo "Lockfile not found." && exit 1; \
|
||||||
fi
|
fi
|
||||||
|
|||||||
+5
-1
@@ -4,9 +4,13 @@ services:
|
|||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3609:3000"
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
|
- BALE_BOT_TOKEN=1203122702:hA91klC9rD8aI8EPqVmV9X6VfZbyvWy9mvg
|
||||||
|
- BALE_CHAT_ID=6309891314
|
||||||
|
- TELEGRAM_CHAT_ID=6309891314
|
||||||
|
- TELEGRAM_BOT_TOKEN=1203122702:hA91klC9rD8aI8EPqVmV9X6VfZbyvWy9mvg
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"]
|
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