add default ansible config

This commit is contained in:
Timofey
2025-07-24 14:53:32 +03:00
parent b56deaa92d
commit 1783e34421
8 changed files with 450 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service
[Service]
User={{ user }}
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