TG-FileStreamBot icon indicating copy to clipboard operation
TG-FileStreamBot copied to clipboard

Issues with deploying using docker compose

Open l3lack-eyes opened this issue 1 year ago • 13 comments

hello . i've deployed bot recently using docker compose and it responds to my /start bot not linking my files.

l3lack-eyes avatar Dec 01 '23 05:12 l3lack-eyes

@l3lack-eyes You sure that you've filled out the env vars? If possible, can you share the logs?

EverythingSuckz avatar Dec 01 '23 05:12 EverythingSuckz

yes vars are filled . how to see logs?

l3lack-eyes avatar Dec 01 '23 05:12 l3lack-eyes

docker-compose.yml

version: "3.8"

services:
  fsb:
      build: .
      restart: unless-stopped
      container_name: fsb
      environment:
      # required
       - API_ID=28077###  # change this to your ID
       - API_HASH=e84821a2cb2###eba1b8334947ca###  # change this to your HASH
       - BOT_TOKEN=6###6958:AAEowfXEFUkPdIA51##DEQql-bN75ZE_FE  # enter you>       - BIN_CHANNEL=-1001##5193##6 # paste channel ID
      ports:
       - 127.0.0.1:8000:8000
      volumes:
       - $HOME/TG-FileStreamBot:/app/.env

l3lack-eyes avatar Dec 01 '23 06:12 l3lack-eyes

Added Bot as Admin in Bin Channel?

DeekshithSH avatar Dec 01 '23 06:12 DeekshithSH

oh . I did it now and it's working . thanks D:

l3lack-eyes avatar Dec 01 '23 06:12 l3lack-eyes

the given link are like this http://0.0.0.0:8080/f65b9d4 why it is not my server's ip address and myselected port was 8000 which in the link is 8080

l3lack-eyes avatar Dec 01 '23 07:12 l3lack-eyes

the given link are like this http://0.0.0.0:8080/f65b9d4 why it is not my server's ip address and myselected port was 8000 which in the link is 8080

Set the FQDN var to your server ip and set your PORT var to your desired port. Make sure to configure your docker-compose.yml file with the same port. See this section for the list of all available vars. Please also do make sure to whitelist the port in your server's firewall configuration.

EverythingSuckz avatar Dec 01 '23 07:12 EverythingSuckz

version: "3.8"

services:
fsb:
build: .
restart: unless-stopped
container_name: fsb
environment:
# required
- API_ID=28077### # change this to your ID
- API_HASH=e84821a2cb2###eba1b8334947ca### # change this to your HASH
- BOT_TOKEN=6##https://github.com/EverythingSuckz/TG-FileStreamBot/pull/6958:AAEowfXEFUkPdIA51##DEQql-bN75ZE_FE # enter you> - BIN_CHANNEL=-1001##5193##6 # paste channel ID
ports:
- 127.0.0.1:8000:8000
volumes:
- $HOME/TG-FileStreamBot:/app/.env
       - PORT=8000
       - FQDN=##.###ivr.link

is this right?it didn't work for me . port 8000 is open

l3lack-eyes avatar Dec 01 '23 07:12 l3lack-eyes

is this right?it didn't work for me . port 8000 is open

No the configuration is wrong.

version: "3.8"

services:
fsb:
build: .
restart: unless-stopped
container_name: fsb
environment:
- API_ID=28077XXXX
- API_HASH=e84821a2cb2XXXXXXXXXX
- BOT_TOKEN=XXXXXXX
- BIN_CHANNEL=-100XXXXXXXX
- PORT = 8000
- FQDN = 192.165.15.1 #(Your server IP or domain without protocol)
ports:
- 127.0.0.1:8000:8000

EverythingSuckz avatar Dec 01 '23 07:12 EverythingSuckz

Still the same issue. Can you send this configuration with same indents of code?

l3lack-eyes avatar Dec 01 '23 08:12 l3lack-eyes

Still the same issue. Can you send this configuration with same indents of code?

Let me try deploying it on a docker and I'll see for myself. Please wait till then.

EverythingSuckz avatar Dec 01 '23 08:12 EverythingSuckz

Thanks

l3lack-eyes avatar Dec 01 '23 08:12 l3lack-eyes

Hello again . Have you checked the service ?

l3lack-eyes avatar Dec 01 '23 20:12 l3lack-eyes