Skip to content

Instantly share code, notes, and snippets.

@tshipenchko
Created April 2, 2024 14:16
Show Gist options
  • Save tshipenchko/fd3f53cded1e81656a5fc99ec267f3a1 to your computer and use it in GitHub Desktop.
Save tshipenchko/fd3f53cded1e81656a5fc99ec267f3a1 to your computer and use it in GitHub Desktop.
mtproto server using v2ray-core (ARM supported)
version: "3"
services:
v2ray:
image: v2fly/v2fly-core:v4.45.2
restart: always
command: v2ray -config /config.json
volumes:
- ./config.json:/config.json
ports:
- "54888:54888"
{
"inbounds": [
{
"tag": "tag-in",
"port": 54888,
"protocol": "mtproto",
"settings": {
"users": [
{
"secret": "CHANGE ME"
}
]
}
}
],
"outbounds": [
{
"tag": "tag-out",
"protocol": "mtproto",
"settings": {}
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
}
],
"routing": {
"rules": [
{
"type": "field",
"inboundTag": [
"tg-in"
],
"outboundTag": "tg-out"
},
{
"type": "field",
"ip": [
"geoip:private"
],
"outboundTag": "blocked"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment