From 336b326bbfe89eba1b3ff9d185de6de834241b5c Mon Sep 17 00:00:00 2001 From: Jakub Delicat Date: Tue, 19 Sep 2023 16:48:05 +0200 Subject: [PATCH] Added compose service Signed-off-by: Jakub Delicat --- docker-compose@.service | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 docker-compose@.service diff --git a/docker-compose@.service b/docker-compose@.service new file mode 100644 index 0000000..853d9f6 --- /dev/null +++ b/docker-compose@.service @@ -0,0 +1,14 @@ +[Unit] +Description=%i service with docker compose +PartOf=docker.service +After=docker.service + +[Service] +Type=oneshot +RemainAfterExit=true +WorkingDirectory=/etc/docker/compose/%i +ExecStart=/usr/bin/docker compose up -d --remove-orphans +ExecStop=/usr/bin/docker compose down + +[Install] +WantedBy=multi-user.target \ No newline at end of file