Multi-instance docker-compose

Multi-instance docker-compose, for physical servers with multiple NICs or IPs
This commit is contained in:
Error996 2022-01-03 01:15:20 +08:00 committed by GitHub
parent 99ace70150
commit 219f6380fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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"]