mirror of
https://github.com/239573049/FastGateway.git
synced 2026-10-18 06:31:10 +08:00
64ed8e3c74
普通 http:// 上游固定 HTTP/1.1,并让 YARP cluster 共用一份出站连接池,避免 prior-knowledge 失败后套接字翻倍。容器提高 nofile,并以 root 运行以免 bind mount 的 data/certs 无法写入。 Co-authored-by: Cursor <cursoragent@cursor.com>
25 lines
531 B
YAML
25 lines
531 B
YAML
services:
|
|
fast-gateway.service:
|
|
image: aidotnet/fast-gateway:arm64
|
|
container_name: fast-gateway.service
|
|
restart: always
|
|
user: "0:0"
|
|
build:
|
|
context: .
|
|
dockerfile: src/FastGateway.Service/Dockerfile.arm
|
|
platforms:
|
|
- linux/arm64
|
|
volumes:
|
|
- ./data:/app/data
|
|
- ./certs:/app/certs
|
|
ports:
|
|
- "8000:8080"
|
|
- "80:80"
|
|
- "443:443/udp"
|
|
- "443:443/tcp"
|
|
ulimits:
|
|
nofile:
|
|
soft: 65535
|
|
hard: 65535
|
|
platform: linux/arm64
|