mirror of
https://github.com/cmz0228/hysteria-dev.git
synced 2025-06-16 09:19:51 +00:00
Multi-instance docker-compose
Multi-instance docker-compose, for physical servers with multiple NICs or IPs
This commit is contained in:
parent
99ace70150
commit
219f6380fb
47
docker-compose[Multiple_Instances].yaml
Normal file
47
docker-compose[Multiple_Instances].yaml
Normal file
@ -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"]
|
Loading…
x
Reference in New Issue
Block a user