You must setup Podman first.

Steps

  1. create telegram-bot-api directory in $HOME/podman
    mkdir -p ~/podman/telegram-bot-api && cd ~/podman/telegram-bot-api
    
  2. copy from compose.yml
    nano compose.yml
    
  3. start telegram-bot-api
    podman-compose -f ~/podman/telegram-bot-api/compose.yml systemd -a register
    systemctl --user enable --now podman-compose@telegram-bot-api
    

compose.yml

version: "3"
services:
  telegram-bot-api:
    image: docker.io/heinokesoe/telegram-bot-api:latest
    container_name: telegram-bot-api
    networks:
      - traefik
    ports:
      - "127.0.0.1:8082:8082"
    volumes:
      - ./data:/app
    environment:
      - TELEGRAM_API_ID=<api id>
      - TELEGRAM_API_HASH=<api hash>
    restart: unless-stopped
    labels:
      - "io.containers.autoupdate=registry"
networks:
  traefik:
    external: true