TG-FileStreamBot
TG-FileStreamBot copied to clipboard
Issues with deploying using docker compose
hello . i've deployed bot recently using docker compose and it responds to my /start bot not linking my files.
@l3lack-eyes You sure that you've filled out the env vars? If possible, can you share the logs?
yes vars are filled . how to see logs?
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
Added Bot as Admin in Bin Channel?
oh . I did it now and it's working . thanks D:
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
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.
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
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
Still the same issue. Can you send this configuration with same indents of code?
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.
Thanks
Hello again . Have you checked the service ?