Files
metapi/docker/docker-compose.yml
Fierushio e6278e2208 fix(docker): forward every variable declared in docker/.env.example
* fix(docker): forward every documented env var to the container

docker/docker-compose.yml only forwarded a subset of the variables that
docker/.env.example tells users to set, so the rest were silently inert.
CHECKIN_CRON and BALANCE_REFRESH_CRON were additionally hardcoded, which
overrode any user value.

* docs(docker): declare the remaining supported env vars in the compose example
2026-08-30 14:00:09 +08:00

26 lines
1011 B
YAML

services:
metapi:
image: 1467078763/metapi:latest
ports:
- "127.0.0.1:${PORT:-4000}:${PORT:-4000}"
volumes:
- ./data:/app/data
environment:
AUTH_TOKEN: ${AUTH_TOKEN:?AUTH_TOKEN is required}
PROXY_TOKEN: ${PROXY_TOKEN:?PROXY_TOKEN is required}
CHECKIN_CRON: "${CHECKIN_CRON:-0 8 * * *}"
BALANCE_REFRESH_CRON: "${BALANCE_REFRESH_CRON:-0 * * * *}"
PORT: ${PORT:-4000}
DATA_DIR: /app/data
TZ: ${TZ:-Asia/Shanghai}
NOTIFY_COOLDOWN_SEC: ${NOTIFY_COOLDOWN_SEC:-300}
ADMIN_IP_ALLOWLIST: "${ADMIN_IP_ALLOWLIST:-}"
SYSTEM_PROXY_URL: "${SYSTEM_PROXY_URL:-}"
TELEGRAM_ENABLED: ${TELEGRAM_ENABLED:-false}
TELEGRAM_BOT_TOKEN: "${TELEGRAM_BOT_TOKEN:-}"
TELEGRAM_CHAT_ID: "${TELEGRAM_CHAT_ID:-}"
TELEGRAM_API_BASE_URL: "${TELEGRAM_API_BASE_URL:-}"
TELEGRAM_MESSAGE_THREAD_ID: "${TELEGRAM_MESSAGE_THREAD_ID:-}"
TELEGRAM_USE_SYSTEM_PROXY: ${TELEGRAM_USE_SYSTEM_PROXY:-false}
restart: unless-stopped