[Unit] Description=RustProxy Docker discovery agent After=docker.service network-online.target Wants=network-online.target Requires=docker.service [Service] Type=simple User=rustproxy-docker-agent Group=docker EnvironmentFile=/etc/rustproxy/docker-agent.env StateDirectory=rustproxy-docker-agent StateDirectoryMode=0750 UMask=0027 ExecStart=/usr/local/bin/rustproxy-docker-agent Restart=on-failure RestartSec=3 NoNewPrivileges=true PrivateTmp=true ProtectSystem=strict ProtectHome=true ProtectKernelTunables=true ProtectKernelModules=true ProtectControlGroups=true ProtectClock=true ProtectKernelLogs=true RestrictSUIDSGID=true RestrictNamespaces=true LockPersonality=true MemoryDenyWriteExecute=true RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 SystemCallArchitectures=native [Install] WantedBy=multi-user.target