[Unit]
Description=SDP micro agent
Documentation=https://github.com/sdp
After=network-online.target docker.service
Wants=network-online.target
Requires=docker.service

[Service]
Type=simple
User=administrator
WorkingDirectory=/home/administrator
# SDP_CP_URL points at the control plane. Default is the production
# topology (control plane on 186, micro agent on 92). Override by
# creating /etc/default/sdp-agent-micro with `SDP_CP_URL=...`.
Environment=SDP_CP_URL=ws://172.18.139.186:3452/ws/agent
EnvironmentFile=-/etc/default/sdp-agent-micro
ExecStart=/home/administrator/SDP/bin/agent-micro -node micro -cp ${SDP_CP_URL}
Restart=always
RestartSec=2s

MemoryMax=256M

[Install]
WantedBy=multi-user.target
