enwaiax / x-ui

x-ui in docker version
MIT License
177 stars 61 forks source link

x-ui panel with docker #14

Closed ali-hosini closed 1 year ago

ali-hosini commented 1 year ago

Hello, I have installed the FranzKafkaYu panel and I have a question, how can I access the x-ui panel through Docker? I tested everything I thought. In the end, when I executed Docker and entered the bash environment and gave the x-ui command, this happened: image please help me ,thanks

enwaiax commented 1 year ago

There is no such thing as x-ui panel. In FranzKafkaYu Panel, the x-ui panel is a shell script that allows you to control the x-ui service, such as install, uninstall and update. In docker, it's the x-ui binary. You do not need to worry about how to interact with the x-ui service. But you can still use x-ui help to use the subcommand supported by the x-ui binary

ali-hosini commented 1 year ago

How about the other panels? Isn't there a panel for them in the Docker environment? And what do you suggest to install two panels in one server?

enwaiax commented 1 year ago

No, there is no such panel because it's not needed at all. It's using host network so if you want to install two panels you need to change the docker-compose.yaml file like using bridge network but you need export the port you want to use to run the xray or v2ray by your self.

ali-hosini commented 1 year ago

i install with this command mkdir x-ui1 && cd x-ui1 docker run -itd --network=host\ -v $PWD/db1/:/etc/x-ui1/ \ -v $PWD/cert1/:/root/cert1/ \ --name x-ui1 --restart=unless-stopped \ enwaiax/x-ui:alpha

and i add a number for every dir and name can you tell me What else should I change?

enwaiax commented 1 year ago

Try to learn something about docker network model. What is host network and what is bridge network.

It makes no difference how many panel you install.

ali-hosini commented 1 year ago

thanks for reply , have nice night