添加测试环境

This commit is contained in:
zk
2026-06-25 15:29:39 +08:00
parent f68772e8f0
commit 57555a9394
4 changed files with 234 additions and 6 deletions
+25
View File
@@ -0,0 +1,25 @@
services:
nginx:
build:
context: .
dockerfile: Dockerfile.test
container_name: global-nginx-test
restart: always
ports:
- "80:80"
- "443:443"
deploy:
resources:
limits:
cpus: '1'
memory: 512M
reservations:
cpus: '0.25'
memory: 128M
healthcheck:
test: ["CMD", "curl", "-f", "-o", "/dev/null", "-s", "-w", "%{http_code}", "http://localhost/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s