[Unit] Description=MCR Container Registry After=network-online.target Wants=network-online.target [Service] Type=simple User=mcr Group=mcr ExecStart=/usr/local/bin/mcrsrv server --config /srv/mcr/mcr.toml Restart=on-failure RestartSec=5 # Security hardening NoNewPrivileges=true ProtectSystem=strict ProtectHome=true PrivateTmp=true PrivateDevices=true ProtectKernelTunables=true ProtectKernelModules=true ProtectControlGroups=true RestrictSUIDSGID=true RestrictNamespaces=true LockPersonality=true MemoryDenyWriteExecute=true RestrictRealtime=true ReadWritePaths=/srv/mcr # Allow binding to privileged ports if needed AmbientCapabilities=CAP_NET_BIND_SERVICE [Install] WantedBy=multi-user.target