mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-17 15:55:26 +01:00
4faab2618e
Dependencies 1, You must have docker with compose plugin installed. 2, You must have the directory /etc/goharbor/harbor in your env. Tested 1, ubuntu 20.04 Signed-off-by: Wang Yan <wangyan@vmware.com>
16 lines
442 B
Desktop File
16 lines
442 B
Desktop File
[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 |