From 219f6380fb463c42e42ef26a8b3dd44a0b36633a Mon Sep 17 00:00:00 2001 From: Error996 <12880110+Error996@users.noreply.github.com> Date: Mon, 3 Jan 2022 01:15:20 +0800 Subject: [PATCH] Multi-instance docker-compose Multi-instance docker-compose, for physical servers with multiple NICs or IPs --- docker-compose[Multiple_Instances].yaml | 47 +++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 docker-compose[Multiple_Instances].yaml diff --git a/docker-compose[Multiple_Instances].yaml b/docker-compose[Multiple_Instances].yaml new file mode 100644 index 0000000..d60c44e --- /dev/null +++ b/docker-compose[Multiple_Instances].yaml @@ -0,0 +1,47 @@ +version: '3.8' +services: + hysteria1: + image: tobyxdd/hysteria + container_name: hysteria1 + restart: always + ports: + - '36711:36711/udp' + volumes: + - ./:/root + command: ["-config","/root/hysteria.json","server"] + hysteria2: + image: tobyxdd/hysteria + container_name: hysteria2 + restart: always + ports: + - '36712:36711/udp' + volumes: + - ./:/root + command: ["-config","/root/hysteria.json","server"] + hysteria3: + image: tobyxdd/hysteria + container_name: hysteria3 + restart: always + ports: + - '36713:36711/udp' + volumes: + - ./:/root + command: ["-config","/root/hysteria.json","server"] + hysteria4: + image: tobyxdd/hysteria + container_name: hysteria4 + restart: always + ports: + - '36714:36711/udp' + volumes: + - ./:/root + command: ["-config","/root/hysteria.json","server"] + hysteria5: + image: tobyxdd/hysteria + container_name: hysteria5 + restart: always + ports: + - '36715:36711/udp' + volumes: + - ./:/root + command: ["-config","/root/hysteria.json","server"]