Sign inSign up

bebradmin/wiresync-bot

By bebradmin

•Updated over 1 year ago

Telegram bot for managing servers and users for API Wireguard Portal

Image
Networking
API management
0

364

bebradmin/wiresync-bot repository overview

Вот обновлённый Repository Overview для Docker Hub контейнера с ботом WireSync:

⁠WireSync Bot: Telegram VPN Management

WireSync Bot is a modern Telegram bot for managing WireGuard VPN servers and user access with PostgreSQL integration.
This bot is designed to work with WireGuard Portal servers⁠ and provides a convenient way to manage VPN users and servers directly from Telegram.

⁠Features

  • Manage WireGuard VPN users and servers via Telegram
  • PostgreSQL integration for persistent storage
  • Easy deployment with Docker Compose or auto-install script
  • Admin web interface via pgAdmin

⁠Quick Start

Just run on your server:

bash <(curl -Ls https://raw.githubusercontent.com/BebrAdmin/WireSync/main/scripts/install.sh)

The script will create all necessary files and launch the containers.

⁠2. Manual Deployment
⁠Step 1: Create .env file
TOKEN=123456789:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
DATABASE_URL=postgresql+asyncpg://admin:Aa123456@wiresync-postgres:5432/wiresync_db
SERVER_HEALTH_INTERVAL=300
USER_SYNC_INTERVAL=60
TIMEZONE=Europe/Moscow

POSTGRES_USER=admin
POSTGRES_PASSWORD=Aa123456
POSTGRES_DB=wiresync_db

[email protected]
PGADMIN_PASSWORD=Aa123456
⁠Step 2: Create servers.json
{
  "Servers": {
    "1": {
      "Name": "WireSync DB",
      "Group": "Servers",
      "Host": "wiresync-postgres",
      "Port": 5432,
      "MaintenanceDB": "wiresync_db",
      "Username": "admin",
      "SSLMode": "prefer"
    }
  }
}
⁠Step 3: Use this docker-compose.yml
version: '3.8'

services:
  wiresync-postgres:
    image: postgres:17.5
    container_name: wiresync-postgres
    restart: always
    env_file:
      - .env
    environment:
      POSTGRES_USER: ${POSTGRES_USER}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
      POSTGRES_DB: ${POSTGRES_DB}
    volumes:
      - postgres_data:/var/lib/postgresql/data
    networks:
      - wiresync_network
    healthcheck:
      test: [ "CMD-SHELL", "pg_isready -U ${POSTGRES_USER}" ]
      interval: 10s
      retries: 5
      start_period: 10s

  wiresync-pgadmin:
    image: dpage/pgadmin4:9.4
    container_name: wiresync-pgadmin
    restart: always
    env_file:
      - .env
    environment:
      PGADMIN_DEFAULT_EMAIL: ${PGADMIN_EMAIL}
      PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PASSWORD}
    volumes:
      - pgadmin_data:/var/lib/pgadmin
      - ./servers.json:/pgadmin4/servers.json
    ports:
      - "5050:80"
    depends_on:
      wiresync-postgres:
        condition: service_healthy
    networks:
      - wiresync_network

  wiresync-bot:
    image: bebradmin/wiresync-bot
    container_name: wiresync-bot
    restart: unless-stopped
    env_file:
      - .env
    depends_on:
      wiresync-postgres:
        condition: service_healthy
    volumes:
      - ./app/logs:/app/app/logs
    networks:
      - wiresync_network

volumes:
  postgres_data:
  pgadmin_data:

networks:
  wiresync_network:
⁠Step 4: Launch
docker compose up -d

WireSync Bot — simple, secure, and efficient VPN management for your team, designed for WireGuard Portal servers!

Tag summary

Content type

Image

Digest

sha256:4fe8888de…

Size

65.3 MB

Last updated

over 1 year ago

docker pull bebradmin/wiresync-bot