19 lines
445 B
Desktop File
19 lines
445 B
Desktop File
[Unit]
|
|
Description=%i service with docker compose
|
|
Requires=docker.service
|
|
After=docker.service
|
|
|
|
[Service]
|
|
RemainAfterExit=true
|
|
WorkingDirectory=/etc/docker/compose/%i
|
|
ExecStartPre=/bin/bash -c "/usr/bin/docker compose pull || /bin/test"
|
|
ExecStart=/usr/bin/docker compose up --detach --remove-orphans
|
|
ExecStop=/usr/bin/docker compose down
|
|
Restart=always
|
|
RestartSec=5
|
|
StartLimitInterval=500
|
|
StartLimitBurst=3
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|