x-ui icon indicating copy to clipboard operation
x-ui copied to clipboard

Add installation via docker-compose

Open rojinebrahimi opened this issue 2 years ago • 9 comments

Hello, I used your tool to setup my VPN and for the ease of use, I wrote a docker-compose for it. Would be glad if I could help others as well. Thanks.

rojinebrahimi avatar Nov 09 '22 20:11 rojinebrahimi

x2ray增加了xtls-rprx-vision流控选项,解决了之前被探测的问题,请问咱们面板里面的选项啥时候能加上这个呢?

jiaoting avatar Nov 10 '22 03:11 jiaoting

Already supported;

mkdir x-ui && cd x-ui
wget https://raw.githubusercontent.com/Chasing66/beautiful_docker/main/x-ui/docker-compose.yml
docker-compose up -d

enwaiax avatar Nov 11 '22 12:11 enwaiax

Already supported;

mkdir x-ui && cd x-ui
wget https://raw.githubusercontent.com/Chasing66/beautiful_docker/main/x-ui/docker-compose.yml
docker-compose up -d

why version 3.9? when i try to run it says:

root@static:~/Downloads/v2ray_xui/org$ docker-compose up -d
ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/

SDPMrem71 avatar Nov 14 '22 08:11 SDPMrem71

Hello, thanks for your great work. My question is: How can I add Dns/DoH. Even though I added comfig.json, it doesn't see it as dns. It would be great if there was a place in the panel where we can add DoH / DoT / Dns. How can I solve my problem?

my config here

{ "log":{ "loglevel":"warning", "access":"./access.log" }, "api": { "services": [ "HandlerService", "LoggerService", "StatsService" ], "tag": "api" }, "inbounds": [ { "listen": "127.0.0.1", "port": 62789, "protocol": "dokodemo-door", "settings": { "address": "127.0.0.1" }, "tag": "api" } ], "outbounds": [ { "protocol": "freedom", "settings": {} }, { "protocol": "blackhole", "settings": {}, "tag": "blocked" } ], "policy": { "system": { "statsInboundDownlink": true, "statsInboundUplink": true } }, "routing": { "rules": [ { "inboundTag": [ "api" ], "outboundTag": "api", "type": "field" }, { "ip": [ "geoip:private" ], "outboundTag": "blocked", "type": "field" }, { "outboundTag": "blocked", "protocol": [ "bittorrent" ], "type": "field" } ] }, "stats": {}

PrivyXe avatar Nov 14 '22 16:11 PrivyXe

x2ray增加了xtls-rprx-vision流控选项,解决了之前被探测的问题,请问咱们面板里面的选项啥时候能加上这个呢?

已添加,参见这里

FranzKafkaYu avatar Nov 15 '22 05:11 FranzKafkaYu

Already supported;

mkdir x-ui && cd x-ui
wget https://raw.githubusercontent.com/Chasing66/beautiful_docker/main/x-ui/docker-compose.yml
docker-compose up -d

why version 3.9? when i try to run it says:

root@static:~/Downloads/v2ray_xui/org$ docker-compose up -d
ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/

I think you might be using the older version of docker-compose. trying using it via the latest version.

rojinebrahimi avatar Nov 15 '22 10:11 rojinebrahimi

Hello, thanks for your great work. My question is: How can I add Dns/DoH. Even though I added comfig.json, it doesn't see it as dns. It would be great if there was a place in the panel where we can add DoH / DoT / Dns. How can I solve my problem?

my config here

{ "log":{ "loglevel":"warning", "access":"./access.log" }, "api": { "services": [ "HandlerService", "LoggerService", "StatsService" ], "tag": "api" }, "inbounds": [ { "listen": "127.0.0.1", "port": 62789, "protocol": "dokodemo-door", "settings": { "address": "127.0.0.1" }, "tag": "api" } ], "outbounds": [ { "protocol": "freedom", "settings": {} }, { "protocol": "blackhole", "settings": {}, "tag": "blocked" } ], "policy": { "system": { "statsInboundDownlink": true, "statsInboundUplink": true } }, "routing": { "rules": [ { "inboundTag": [ "api" ], "outboundTag": "api", "type": "field" }, { "ip": [ "geoip:private" ], "outboundTag": "blocked", "type": "field" }, { "outboundTag": "blocked", "protocol": [ "bittorrent" ], "type": "field" } ] }, "stats": {}

You can get reference from v2ray: https://www.v2ray.com/en/configuration/dns.html

enwaiax avatar Nov 15 '22 16:11 enwaiax

大佬,你这个有docker版本一建安装脚本吗?另外这个脚本带ssl自签吗?

jiaoting avatar Nov 16 '22 03:11 jiaoting

额,这个一键安装还是很简单的吧 先安装docker

curl -sSL https://get.docker.com/ | sh

起容器

mkdir x-ui && cd x-ui
docker run -itd --network=host -v $PWD/db/:/etc/x-ui/ -v $PWD/cert/:/root/cert/ --name x-ui --restart=unless-stopped enwaiax/x-ui:latest

目前没有支持ssl自签,那个也很简单吧,放到docker里不是很有必要

大佬,你这个有docker版本一建安装脚本吗?另外这个脚本带ssl自签吗?

enwaiax avatar Nov 16 '22 14:11 enwaiax