mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 11:46:43 +01:00
16 lines
442 B
SYSTEMD
16 lines
442 B
SYSTEMD
|
[Unit]
|
||
|
Description=Harbor Cloud Native Registry
|
||
|
Documentation=https://goharbor.io
|
||
|
After=docker.service
|
||
|
Requires=docker.service
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
Restart=on-failure
|
||
|
RestartSec=5
|
||
|
ExecStart=docker compose -f /etc/goharbor/harbor/docker-compose.yml up
|
||
|
ExecStop=docker compose -f /etc/goharbor/harbor/docker-compose.yml down -v
|
||
|
ExecStopPost=docker compose -f /etc/goharbor/harbor/docker-compose.yml rm -f
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|