Update compose files to use env variables and the image.

This commit is contained in:
2025-10-15 13:32:08 -04:00
parent 370f601bd8
commit 5f55806497
3 changed files with 45 additions and 8 deletions

View File

@@ -1,9 +1,20 @@
services:
bot:
no-twitter-bot:
image: gitea.lucids-cove.duckdns.org/wkc/no-twitter-bot:latest
container_name: no-twitter-bot
environment:
- BOT_TOKEN=${BOT_TOKEN}
- BOT_MODE=${BOT_MODE}
- LOG_LEVEL=${LOG_LEVEL}
- DEBUG=${DEBUG}
- BOT_WEBHOOK=${BOT_WEBHOOK}
- BOT_WEBHOOK_SECRET=${BOT_WEBHOOK_SECRET}
- SERVER_HOST=${SERVER_HOST}
- SERVER_PORT=${SERVER_PORT}
- BOT_ADMINS=${BOT_ADMINS}
- GROUP_IDS=${GROUP_IDS}
ports:
- "3000:80"
volumes:
- ".:/usr/src"
env_file:
- .env.bot.dev
command: npm run dev