初始化,创建nginx 相关配置

This commit is contained in:
zk
2026-05-27 11:26:22 +08:00
commit bc4c3200d9
7 changed files with 290 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
services:
nginx:
build: .
container_name: global-nginx
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