29 lines
634 B
SYSTEMD
29 lines
634 B
SYSTEMD
|
|
[Unit]
|
||
|
|
Description=Harbor Desk gateway (%i)
|
||
|
|
After=network-online.target docker.service
|
||
|
|
Wants=network-online.target
|
||
|
|
Requires=docker.service
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Type=simple
|
||
|
|
User=harbor
|
||
|
|
Group=harbor
|
||
|
|
EnvironmentFile=/etc/harbor/harbor.env
|
||
|
|
EnvironmentFile=/etc/harbor/gateway-%i.env
|
||
|
|
ExecStart=/opt/harbor/slots/%i/bin/gateway -f /etc/harbor/gateway.yaml
|
||
|
|
Restart=on-failure
|
||
|
|
RestartSec=3
|
||
|
|
TimeoutStopSec=300
|
||
|
|
KillSignal=SIGTERM
|
||
|
|
NoNewPrivileges=true
|
||
|
|
PrivateTmp=true
|
||
|
|
ProtectSystem=strict
|
||
|
|
ProtectHome=true
|
||
|
|
ReadWritePaths=/var/lib/harbor
|
||
|
|
StandardOutput=journal
|
||
|
|
StandardError=journal
|
||
|
|
SyslogIdentifier=harbor-gateway-%i
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=multi-user.target
|