feat: update Guidelines

This commit is contained in:
Sun-ZhenXing
2025-10-15 14:00:03 +08:00
parent fe329c80eb
commit 8cf227bd14
76 changed files with 1078 additions and 671 deletions

View File

@@ -1,27 +1,23 @@
x-default: &default
restart: unless-stopped
volumes:
- &localtime /etc/localtime:/etc/localtime:ro
- &timezone /etc/timezone:/etc/timezone:ro
logging:
driver: json-file
options:
max-size: 100m
max-file: "3"
services:
nacos:
<<: *default
image: nacos/nacos-server:${NACOS_VERSION:-v3.1.0-slim}
container_name: nacos
ports:
- "${NACOS_HTTP_PORT_OVERRIDE:-8848}:8848"
- "${NACOS_GRPC_PORT_OVERRIDE:-9848}:9848"
- "${NACOS_GRPC_PORT2_OVERRIDE:-9849}:9849"
volumes:
- *localtime
- *timezone
- nacos_logs:/home/nacos/logs
environment:
- TZ=${TZ:-UTC}
- MODE=${NACOS_MODE:-standalone}
- PREFER_HOST_MODE=hostname
- NACOS_AUTH_ENABLE=${NACOS_AUTH_ENABLE:-true}
@@ -40,6 +36,12 @@ services:
reservations:
cpus: '0.5'
memory: 512M
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8848/nacos/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
volumes:
nacos_logs: