2024-03-17 18:21:46 -04:00
|
|
|
[Unit]
|
|
|
|
Description=%i service with docker compose
|
|
|
|
Requires=docker.service
|
|
|
|
After=docker.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
RemainAfterExit=true
|
|
|
|
WorkingDirectory=/etc/docker/compose/%i
|
|
|
|
ExecStartPre=/usr/bin/docker compose pull
|
|
|
|
ExecStart=/usr/bin/docker compose up --detach --remove-orphans
|
|
|
|
ExecStop=/usr/bin/docker compose down
|
2024-04-03 16:02:52 -04:00
|
|
|
Restart=always
|
|
|
|
RestartSec=5
|
|
|
|
StartLimitInterval=500
|
|
|
|
StartLimitBurst=3
|
2024-03-17 18:21:46 -04:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|