feat: update

This commit is contained in:
liuyx 2024-09-02 18:41:58 +08:00
parent 00d500a440
commit 0fdd076774
3 changed files with 49 additions and 19 deletions

22
docker-compose.u22.yaml Normal file
View File

@ -0,0 +1,22 @@
services:
u22:
# command: command
container_name: u22
image: ubuntu-systemd:22.04
restart: always
hostname: u22
# ports:
# - 3111-3222:3111-3222
# networks:
# - local
privileged: true
network_mode: host
build:
context: .
volumes:
- ${ROOT_DIR}:/root
- /etc/localtime:/etc/localtime:ro
- /sys/fs/cgroup:/sys/fs/cgroup:ro
environment:
APP_ADDRESS: 0.0.0.0:3111
# command: ['tail', '-f', '/dev/null']

View File

@ -1,22 +1,27 @@
services:
u22:
# command: command
container_name: u22
image: ubuntu-systemd:22.04
sing-box:
image: fscarmen/sb
pull_policy: always
container_name: s
hostname: sing-box
restart: always
hostname: u22
# ports:
# - 3111-3222:3111-3222
# networks:
# - local
privileged: true
network_mode: host
build:
context: .
volumes:
- ${ROOT_DIR}:/root
- /etc/localtime:/etc/localtime:ro
- /sys/fs/cgroup:/sys/fs/cgroup:ro
networks:
- sing-box
environment:
APP_ADDRESS: 0.0.0.0:3111
# command: ['tail', '-f', '/dev/null']
- START_PORT=40090
- SERVER_IP=${IP_ADDR}
- XTLS_REALITY=true
- HYSTERIA2=true
- TUIC=false
- SHADOWTLS=false
- SHADOWSOCKS=true
- TROJAN=false
- VMESS_WS=false
- VLESS_WS=true
- H2_REALITY=true
- GRPC_REALITY=true
- UUID=20f7fca4-86e5-4ddf-9eed-24142073d197
- CDN=
- NODE_NAME=awse
- ARGO_DOMAIN=
- ARGO_AUTH=

3
run.sh Normal file
View File

@ -0,0 +1,3 @@
ip_addr=`wget -qO- ipinfo.io/ip`
IP_ADDR="$ip_addr" docker compose up -d