feat: update Guidelines
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user