name: bots-translation
services:
  bots-translation:
    cpu_shares: 90
    command: []
    container_name: bots-translation
    deploy:
      resources:
        limits:
          memory: 15922M
    environment:
      - ADMIN_PASSWORD=MiPo6425@@
      - ADMIN_USERNAME=nickpons666
      - DATABASE_PATH=/app/data/bots_config.db
      - DB_HOST=10.10.4.17
      - DB_NAME=mi_red
      - DB_PASSWORD=MiPo6425@@
      - DB_PORT=3390
      - DB_TYPE=mysql
      - DB_USER=nickpons666
      - DISCORD_TOKEN=MTM4NTc5MDM0NDU5NDk4NTA2MQ.GvobiS.TRQM9dX7vDjmuGVa3Ckp6YRtGEWxdW0gBDbvCI
      - LIBRETRANSLATE_URL=https://translate-pons.duckdns.org/translate
      - TELEGRAM_TOKEN=8469229183:AAEVIV5e7rjDXKNgFTX0dnCW6JWB88X4p2I
      - WEB_HOST=0.0.0.0
      - WEB_PORT=8000
    hostname: bots-translation
    image: registry-pons.duckdns.org/bots-translation:v1
    labels:
      icon: https://raw.githubusercontent.com/istomes/casaos-icons/main/icons/bot.png
    ports:
      - target: 8000
        published: "8091"
        protocol: tcp
    restart: unless-stopped
    volumes:
      - type: bind
        source: /DATA/AppData/bots-translation/data
        target: /app/data
    x-casaos:
      envs:
        - container: DISCORD_TOKEN
          description:
            en_us: Token del bot de Discord
        - container: TELEGRAM_TOKEN
          description:
            en_us: Token del bot de Telegram
        - container: LIBRETRANSLATE_URL
          description:
            en_us: URL de LibreTranslate
        - container: ADMIN_USERNAME
          description:
            en_us: Usuario admin del panel
        - container: ADMIN_PASSWORD
          description:
            en_us: Contraseña admin del panel
        - container: DB_TYPE
          description:
            en_us: Tipo de base de datos (sqlite/mysql)
        - container: DB_HOST
          description:
            en_us: Host de MySQL
        - container: DB_PORT
          description:
            en_us: Puerto de MySQL
        - container: DB_USER
          description:
            en_us: Usuario de MySQL
        - container: DB_PASSWORD
          description:
            en_us: Contraseña de MySQL
        - container: DB_NAME
          description:
            en_us: Nombre de la base de datos MySQL
        - container: DATABASE_PATH
          description:
            en_us: Ruta de la base de datos SQLite (si DB_TYPE=sqlite)
      ports:
        - container: "8000"
          description:
            en_us: Puerto del panel web
      volumes:
        - container: /app/data
          description:
            en_us: Datos de los bots y base de datos
    devices: []
    cap_add: []
    network_mode: bridge
    privileged: false
x-casaos:
  architectures:
    - amd64
  author: nickpons666
  category: Utility
  description:
    en_us: Bots de traducción para Discord y Telegram con panel web
  developer: nickpons666
  hostname: ""
  icon: https://raw.githubusercontent.com/istomes/casaos-icons/main/icons/bot.png
  index: /
  is_uncontrolled: false
  main: bots-translation
  port_map: "8091"
  scheme: http
  store_app_id: bots-translation
  tagline:
    en_us: Bots de Traducción
  title:
    custom: ""
    en_us: Bots de Traducción
