Eugeny / tabby-web

Tabby Web - an SSH/Telnet/Serial client in your browser.
https://tabby.sh
MIT License
806 stars 120 forks source link

Service Unavailable: /api/1/gateways/choose(503) #93

Open DaiYuanchuan opened 1 year ago

DaiYuanchuan commented 1 year ago

I don't know why, is there any configuration I missed? I built through docker, this is build statement

docker build --force-rm -t tabby-web:20230228204228 -f /usr/local/tabby/tabby-web/Dockerfile .

this is my docker run

docker run -d -m 2048M --memory-swap 4096M --log-opt max-size=500M --log-opt max-file=1 \ --name tabby-web \ -e 'DATABASE_URL=mysql://tabby:tabby@10.21.19.72:10025/tabby-web' \ -e 'PORT=80' \ -e 'DEBUG=false' \ -e 'ENABLE_HOMEPAGE=true' \ -e 'APP_DIST_STORAGE=file:///app-dist' \ -e 'DOCKERIZE_ARGS="-wait tcp://10.21.19.72:10025 -timeout 60s"' \ -v /usr/local/tabby/app:/app \ -v /usr/local/tabby/app-dist:/app-dist \ -p 9090:80 \ --network tabby --ip 172.32.0.2 \ --restart always tabby-web:20230228204228

when I make an ssh connection image

request : /api/1/gateways/choose (503 Service Unavailable)

image

I don't know what I did wrong. I'd like to get a hint. thanks.

aogg commented 1 year ago

+1

rantanlan commented 1 year ago

guess you are missing the gateway service:

Tabby Web serves the Tabby Terminal as a web application while managing multiple config files, authentication, and providing TCP connections via a separate gateway service.

aogg commented 1 year ago

https://github.com/Eugeny/tabby-web/blob/master/docker-compose.yml

None of the examples you gave mentioned this.

sonicno1 commented 1 year ago

+1