Add SSH bot service with compose configuration

This commit is contained in:
Festus Debrah
2025-04-27 04:29:42 +01:00
parent 2876629981
commit 583b13d8ed
2 changed files with 30 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
# SSH Bot Configuration
SSHBOT_DISCORD_TOKEN=your_discord_bot_token_here
SSHBOT_SSH_HOST=your_vps_host
SSHBOT_SSH_PORT=22
SSHBOT_SSH_USERNAME=your_ssh_username
SSHBOT_SSH_PASSWORD=your_ssh_password
# Timezone
TZ=UTC
# Optional: Key-based authentication
# SSH_PRIVATE_KEY_PATH=/path/to/your/private/key
# SSH_PRIVATE_KEY=-----BEGIN RSA PRIVATE KEY-----\nYOUR_PRIVATE_KEY_CONTENT_HERE\n-----END RSA PRIVATE KEY-----
# SSH_KEY_PASSPHRASE=your_key_passphrase
+16
View File
@@ -0,0 +1,16 @@
services:
sshbot:
image: nhyyeb/sshbot:latest
container_name: sshbot
restart: unless-stopped
environment:
- DISCORD_TOKEN=${SSHBOT_DISCORD_TOKEN}
- SSH_HOST=${SSHBOT_SSH_HOST}
- SSH_PORT=${SSHBOT_SSH_PORT}
- SSH_USERNAME=${SSHBOT_SSH_USERNAME}
- SSH_PASSWORD=${SSHBOT_SSH_PASSWORD}
- TZ=${TZ:-UTC}
profiles:
- sshbot
- all