style: lint code
This commit is contained in:
@@ -7,16 +7,16 @@ x-defaults: &defaults
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 100m
|
||||
max-file: "3"
|
||||
max-file: '3'
|
||||
|
||||
services:
|
||||
pingora-proxy-manager:
|
||||
<<: *defaults
|
||||
image: ${GLOBAL_REGISTRY:-}dduldduck/pingora-proxy-manager:${PINGORA_VERSION:-v1.0.3}
|
||||
ports:
|
||||
- "${PINGORA_HTTP_PORT_OVERRIDE:-80}:8080"
|
||||
- "${PINGORA_DASHBOARD_PORT_OVERRIDE:-81}:81"
|
||||
- "${PINGORA_HTTPS_PORT_OVERRIDE:-443}:443"
|
||||
- '${PINGORA_HTTP_PORT_OVERRIDE:-80}:8080'
|
||||
- '${PINGORA_DASHBOARD_PORT_OVERRIDE:-81}:81'
|
||||
- '${PINGORA_HTTPS_PORT_OVERRIDE:-443}:443'
|
||||
volumes:
|
||||
- pingora_data:/app/data
|
||||
- pingora_logs:/app/logs
|
||||
@@ -26,7 +26,7 @@ services:
|
||||
- JWT_SECRET=${PINGORA_JWT_SECRET:-changeme_in_production_please}
|
||||
- RUST_LOG=${PINGORA_LOG_LEVEL:-info}
|
||||
healthcheck:
|
||||
test: ["CMD", "sh", "-c", "wget -q --spider http://127.0.0.1:81/api/login || exit 1"]
|
||||
test: [CMD, sh, -c, 'wget -q --spider http://127.0.0.1:81/api/login || exit 1']
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
@@ -34,11 +34,11 @@ services:
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "${PINGORA_CPU_LIMIT:-2.00}"
|
||||
memory: "${PINGORA_MEMORY_LIMIT:-512M}"
|
||||
cpus: '${PINGORA_CPU_LIMIT:-2.00}'
|
||||
memory: '${PINGORA_MEMORY_LIMIT:-512M}'
|
||||
reservations:
|
||||
cpus: "${PINGORA_CPU_RESERVATION:-0.50}"
|
||||
memory: "${PINGORA_MEMORY_RESERVATION:-256M}"
|
||||
cpus: '${PINGORA_CPU_RESERVATION:-0.50}'
|
||||
memory: '${PINGORA_MEMORY_RESERVATION:-256M}'
|
||||
# Security hardening
|
||||
cap_drop:
|
||||
- ALL
|
||||
|
||||
Reference in New Issue
Block a user