From 0fdd076774661c2b5eab8e18ec9ec5e9c1f0ba24 Mon Sep 17 00:00:00 2001 From: liuyx Date: Mon, 2 Sep 2024 18:41:58 +0800 Subject: [PATCH] feat: update --- docker-compose.u22.yaml | 22 +++++++++++++++++++++ docker-compose.yaml | 43 +++++++++++++++++++++++------------------ run.sh | 3 +++ 3 files changed, 49 insertions(+), 19 deletions(-) create mode 100644 docker-compose.u22.yaml create mode 100644 run.sh diff --git a/docker-compose.u22.yaml b/docker-compose.u22.yaml new file mode 100644 index 0000000..9dc9b92 --- /dev/null +++ b/docker-compose.u22.yaml @@ -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'] diff --git a/docker-compose.yaml b/docker-compose.yaml index 9dc9b92..b5a98ba 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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= diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..f36df81 --- /dev/null +++ b/run.sh @@ -0,0 +1,3 @@ +ip_addr=`wget -qO- ipinfo.io/ip` + +IP_ADDR="$ip_addr" docker compose up -d \ No newline at end of file