diff --git a/.gitignore b/.gitignore index 5ef6a52..bd143ff 100644 --- a/.gitignore +++ b/.gitignore @@ -39,3 +39,8 @@ yarn-error.log* # typescript *.tsbuildinfo next-env.d.ts +watch_git.sh + +git_watch.log + +deploy.sh diff --git a/Dockerfile b/Dockerfile index 5ca81b6..fec86bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 810db1a..44c1a13 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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)})"]