This commit is contained in:
2022-05-24 21:15:10 -04:00
parent 209ff57a4a
commit e1c8dc55d3
11 changed files with 103 additions and 92 deletions

View File

@@ -0,0 +1,14 @@
[Unit]
Description=%i docker-compose service
PartOf=docker.service
After=docker.service
[Service]
Type=oneshot
RemainAfterExit=true
WorkingDirectory={{ docker_root }}/%i
ExecStart={{ docker_compose }} up -d --remove-orphans
ExecStop={{ docker_compose }} down
[Install]
WantedBy=multi-user.target