Server
准备工作
开放服务器TCP 80/443 和 UDP 443 端口
docker-compose.yaml (精简版)
version: "3.9"
services:
hysteria:
image: tobyxdd/hysteria
container_name: hysteria
restart: unless-stopped
cpus: '2'
mem_limit: 256M
network_mode: "host"
environment:
- TZ=Asia/Shanghai
volumes:
- acme:/acme
- /root/hysteria/hysteria.yaml:/etc/hysteria.yaml
command: ["server", "-c", "/etc/hysteria.yaml"]
volumes:
acme:docker-compose.yaml (手动配置证书)
此案例修改镜像为ht,修改配置文件为ht.yaml
hysteria.yaml(acme自动申请证书)
ht.yaml(手动配置证书)
启动
Last updated