style: lint code

This commit is contained in:
Sun-ZhenXing
2026-02-23 17:41:05 +08:00
parent ced072de66
commit 7e14b01b78
240 changed files with 4301 additions and 1539 deletions

View File

@@ -8,27 +8,27 @@ x-defaults: &defaults
driver: json-file
options:
max-size: 100m
max-file: "3"
max-file: '3'
#! Example service structure:
# ! Example service structure:
services:
service-name:
<<: *defaults
#! Use ${GLOBAL_REGISTRY} for a global registry prefix if defined
#! If not pulls from Docker Hub by default, use ${GHCR_REGISTRY} for GitHub Container Registry, etc.
#! e.g. ${GLOBAL_REGISTRY:-}httpd:${APACHE_VERSION:-2.4.62-alpine3.20}
#! Use ${SERVICE_NAME_VERSION} to specify the image version, e.g., 3.2.1
# ! Use ${GLOBAL_REGISTRY} for a global registry prefix if defined
# ! If not pulls from Docker Hub by default, use ${GHCR_REGISTRY} for GitHub Container Registry, etc.
# ! e.g. ${GLOBAL_REGISTRY:-}httpd:${APACHE_VERSION:-2.4.62-alpine3.20}
# ! Use ${SERVICE_NAME_VERSION} to specify the image version, e.g., 3.2.1
image: ${GLOBAL_REGISTRY:-}service-image:${SERVICE_NAME_VERSION:-3.2.1}
#! Do not add container_name to allow scaling and avoid name conflicts
# ! Do not add container_name to allow scaling and avoid name conflicts
ports:
- "${SERVICE_NAME_PORT_OVERRIDE:-8080}:8080"
- '${SERVICE_NAME_PORT_OVERRIDE:-8080}:8080'
volumes:
- service_name_data:/data
environment:
- TZ=${TZ:-UTC} #! Set timezone, default to UTC
- TZ=${TZ:-UTC} # ! Set timezone, default to UTC
- ENV_VAR=${ENV_VAR:-default_value}
healthcheck:
test: ["CMD", "command", "to", "check", "health"]
test: [CMD, command, to, check, health]
interval: 30s
timeout: 10s
retries: 3