Using Xray-core with env substitution supports multi configs, secrets, and images.
3.6K
Use Xray-core in a secure and simple way. Your configuration files can be shared freely without redaction. With secrets support, even your environment variable configurations can be shared safely.
.
├── templates # Xray configuration templates
│ ├── server # - Server side
│ └── client # - Client side
├── log # Container volume - Logs
├── v2ray # Container volume - Geo data
├── systemd # Systemd native execution pack
│ ├── xray.service.d
│ │ └── override.conf # Drop-in snippet for variable substitution
│ ├── xray.service # Dynamic user service unit
│ ├── geo-update.timer # Geo data update timer
│ ├── geo-update.service # Geo data update service unit
│ └── README.md # Native execution guide
├── scripts
│ └── geo-update.sh # Geo data update script
├── .env.warp.example # Template substitution definitions
├── compose.yaml # Container orchestration - Sub-service execution
├── compose.override.yaml # Container override - Standalone execution
├── Dockerfile # Image generation config
├── README.md
└── README-cn.md
git clone https://github.com/Lanrenbang/xray-services.git
You can also download the Releases archive.
.env.warp and modify the necessary content as needed.echo -n "some secret" | docker secret create <secret_name> -
echo -n "some secret" | podman secret create <secret_name> -
Or run
docker/podman secret create <secret_name>directly and enter the secret when prompted.
Note:
<secret_name>must match the entries in.env.warpandcompose.yaml.
docker compose up -d
podman compose up -d
Tip:
- If Caddy is used as a frontend, this service will start as a sub-service. No action is needed here; please refer to caddy-services for details.
This project is distributed under the terms of the LICENSE file.
Content type
Image
Digest
sha256:f3a5d5c51…
Size
20.5 MB
Last updated
7 months ago
docker pull lanrenbang/xray-services