{
  "# Custom PHP Framework Docker Daemon Configuration": "{{ environment | upper }}",
  
  "# Security Settings": "Hardened configuration for production use",
  "userland-proxy": {{ docker_daemon_config['userland-proxy'] | tojson }},
  "live-restore": {{ docker_daemon_config['live-restore'] | tojson }},
  "icc": {{ docker_daemon_config['icc'] | tojson }},
  "userns-remap": "{{ docker_daemon_config['userns-remap'] }}",
  "no-new-privileges": {{ docker_daemon_config['no-new-privileges'] | tojson }},
  {% if docker_daemon_config['seccomp-profile'] is defined %}
  "seccomp-profile": "{{ docker_daemon_config['seccomp-profile'] }}",
  {% endif %}
  
  "# Logging Configuration": "Structured logging with rotation",
  "log-driver": "{{ docker_daemon_config['log-driver'] }}",
  "log-opts": {{ docker_daemon_config['log-opts'] | tojson }},
  
  "# Storage Configuration": "Optimized for performance",
  "storage-driver": "{{ docker_daemon_config['storage-driver'] }}",
  {% if docker_daemon_config['storage-opts'] is defined %}
  "storage-opts": {{ docker_daemon_config['storage-opts'] | tojson }},
  {% endif %}
  
  "# Network Security": "Disabled for security",
  {% if docker_daemon_config['bridge'] is defined and docker_daemon_config['bridge'] %}
  "bridge": "{{ docker_daemon_config['bridge'] }}",
  {% endif %}
  "ip-forward": {{ docker_daemon_config['ip-forward'] | tojson }},
  "ip-masq": {{ docker_daemon_config['ip-masq'] | tojson }},
  "iptables": {{ docker_daemon_config['iptables'] | tojson }},
  "ipv6": {{ docker_daemon_config['ipv6'] | tojson }},
  
  "# Resource Limits": "Default container limits",
  "default-ulimits": {{ docker_daemon_config['default-ulimits'] | tojson }},
  
  "# Registry Configuration": "Secure registry access",
  {% if docker_daemon_config['insecure-registries'] | length > 0 %}
  "insecure-registries": {{ docker_daemon_config['insecure-registries'] | tojson }},
  {% endif %}
  {% if docker_daemon_config['registry-mirrors'] | length > 0 %}
  "registry-mirrors": {{ docker_daemon_config['registry-mirrors'] | tojson }},
  {% endif %}
  
  "# Monitoring and Metrics": "Enable for production monitoring",
  {% if docker_metrics_enabled %}
  "metrics-addr": "{{ docker_metrics_address }}",
  "experimental": true,
  {% endif %}
  
  "# Runtime Configuration": "Optimized for PHP 8.4 workloads",
  "default-runtime": "runc",
  "runtimes": {
    "runc": {
      "path": "/usr/bin/runc"
    }
  },
  
  "# Debug and Development": "Environment specific settings",
  "debug": {{ (environment == 'development') | tojson }},
  "experimental": {{ docker_daemon_config['experimental'] | tojson }}
}