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

Add installation via docker-compose #182

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rojinebrahimi
Copy link

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.

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.
@jiaoting
Copy link

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

@enwaiax
Copy link
Contributor

enwaiax commented Nov 11, 2022

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

@SDPMrem71
Copy link

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/

@PrivyXe
Copy link

PrivyXe commented Nov 14, 2022

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": {}

@FranzKafkaYu
Copy link
Contributor

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

已添加,参见这里

@rojinebrahimi
Copy link
Author

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.

@enwaiax
Copy link
Contributor

enwaiax commented Nov 15, 2022

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

@jiaoting
Copy link

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

@enwaiax
Copy link
Contributor

enwaiax commented Nov 16, 2022

额,这个一键安装还是很简单的吧
先安装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自签吗?

find-xposed-magisk pushed a commit to find-xposed-magisk/x-ui that referenced this pull request Mar 16, 2024
…hub.com/goccy/go-json-0.10.2

Bump github.com/goccy/go-json from 0.10.0 to 0.10.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants