From 1e992f23d0424991186023a2c6ff8f9dfbba7052 Mon Sep 17 00:00:00 2001 From: Zengtudor Date: Sat, 9 Nov 2024 10:49:12 +0800 Subject: [PATCH] update --- rxr_mc/docker-compose.yaml | 2 +- rxr_zerotier/.env | 2 ++ rxr_zerotier/docker-compose.yml | 23 +++++++++++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 rxr_zerotier/.env create mode 100644 rxr_zerotier/docker-compose.yml diff --git a/rxr_mc/docker-compose.yaml b/rxr_mc/docker-compose.yaml index 8b097d5..0f3e530 100644 --- a/rxr_mc/docker-compose.yaml +++ b/rxr_mc/docker-compose.yaml @@ -15,4 +15,4 @@ services: - "25565:25565" stdin_open: true tty: true - mem_limit: 10G + mem_limit: ${MAX_MEMORY} diff --git a/rxr_zerotier/.env b/rxr_zerotier/.env new file mode 100644 index 0000000..2f8cb23 --- /dev/null +++ b/rxr_zerotier/.env @@ -0,0 +1,2 @@ +IP_ADDR4=x.x.x.x +ZT_PLANET_PATH=/root/zerotier_planet \ No newline at end of file diff --git a/rxr_zerotier/docker-compose.yml b/rxr_zerotier/docker-compose.yml new file mode 100644 index 0000000..28f2f9d --- /dev/null +++ b/rxr_zerotier/docker-compose.yml @@ -0,0 +1,23 @@ +version: '3' + +services: + myztplanet: + image: xubiaolin/zerotier-planet:latest + container_name: ztplanet + ports: + - 9994:9994 + - 9994:9994/udp + - 3443:3443 + - 3000:3000 + environment: + - IP_ADDR4=${IP_ADDR4} + - IP_ADDR6= + - ZT_PORT=9994 + - API_PORT=3443 + - FILE_SERVER_PORT=3000 + volumes: + - ${ZT_PLANET_PATH}/dist:/app/dist + - ${ZT_PLANET_PATH}/ztncui:/app/ztncui + - ${ZT_PLANET_PATH}/one:/var/lib/zerotier-one + - ${ZT_PLANET_PATH}/config:/app/config + restart: unless-stopped