[Unit] Description=MCR Container Registry Web UI After=mcr.service Wants=mcr.service [Service] Type=simple User=mcr Group=mcr ExecStart=/usr/local/bin/mcr-web --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 ReadOnlyPaths=/srv/mcr [Install] WantedBy=multi-user.target