vpn
This commit is contained in:
19
roles/xray-vps-setup/templates/xray_docker.j2
Normal file
19
roles/xray-vps-setup/templates/xray_docker.j2
Normal file
@@ -0,0 +1,19 @@
|
||||
services:
|
||||
caddy:
|
||||
image: caddy:2.9
|
||||
container_name: caddy
|
||||
restart: always
|
||||
network_mode: host
|
||||
volumes:
|
||||
- ./caddy/data:/data
|
||||
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
|
||||
- ./caddy/templates:/srv
|
||||
xray:
|
||||
image: ghcr.io/xtls/xray-core:25.6.8
|
||||
restart: always
|
||||
container_name: xray
|
||||
user: root
|
||||
command: run -c /etc/xray/config.json
|
||||
network_mode: host
|
||||
volumes:
|
||||
- ./xray:/etc/xray
|
||||
Reference in New Issue
Block a user