Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with deploying using docker compose #120

Open
l3lack-eyes opened this issue Dec 1, 2023 · 13 comments
Open

Issues with deploying using docker compose #120

l3lack-eyes opened this issue Dec 1, 2023 · 13 comments
Labels
bug Something isn't working inspecting Currently looking into this issue

Comments

@l3lack-eyes
Copy link

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

@EverythingSuckz
Copy link
Owner

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

@l3lack-eyes
Copy link
Author

yes vars are filled . how to see logs?

@l3lack-eyes
Copy link
Author

l3lack-eyes commented Dec 1, 2023

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

@DeekshithSH
Copy link
Contributor

Added Bot as Admin in Bin Channel?

@l3lack-eyes
Copy link
Author

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

@l3lack-eyes
Copy link
Author

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

@EverythingSuckz
Copy link
Owner

EverythingSuckz commented Dec 1, 2023

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.

@l3lack-eyes
Copy link
Author

l3lack-eyes commented Dec 1, 2023

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

@EverythingSuckz
Copy link
Owner

EverythingSuckz commented Dec 1, 2023

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

@l3lack-eyes
Copy link
Author

l3lack-eyes commented Dec 1, 2023

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

@EverythingSuckz
Copy link
Owner

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.

@l3lack-eyes
Copy link
Author

Thanks

@l3lack-eyes
Copy link
Author

Hello again . Have you checked the service ?

@EverythingSuckz EverythingSuckz changed the title not linking files Issues with deploying using docker compose Dec 3, 2023
@EverythingSuckz EverythingSuckz added bug Something isn't working inspecting Currently looking into this issue labels Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working inspecting Currently looking into this issue
Projects
None yet
Development

No branches or pull requests

3 participants