mirror of
https://github.com/alexgetmancom/miband-bot.git
synced 2026-09-15 23:14:06 +03:00
rewrite bot in TypeScript and add locale switching
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
services:
|
||||
app:
|
||||
container_name: miband-bot-ts
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.bun
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- /opt/miband-tracker/secrets.env
|
||||
environment:
|
||||
BOT_MODE: polling
|
||||
BIND_HOST: 0.0.0.0
|
||||
DATA_DIR: /app/data
|
||||
DB_PATH: /app/data/miband.db
|
||||
STATUS_PATH: /app/data/status.json
|
||||
BOT_STATE_DB_PATH: /app/data/fitness_bot_state.db
|
||||
SYNC_INTERVAL: 900
|
||||
QUERY_DURATION: 2
|
||||
volumes:
|
||||
- /opt/miband-tracker/data:/app/data
|
||||
ports:
|
||||
- "127.0.0.1:18080:8080"
|
||||
healthcheck:
|
||||
test: ["CMD", "bun", "-e", "fetch('http://127.0.0.1:8080/healthz').then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
Reference in New Issue
Block a user