Use "remove-orphans" to remove deleted services

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2017-09-18 23:19:35 +02:00
parent 68cc398a89
commit 647cbff51f
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -51,12 +51,12 @@
RemainAfterExit=yes
ExecStartPre=/usr/local/bin/docker-compose pull --quiet --parallel --ignore-pull-failures
ExecStart=/usr/local/bin/docker-compose up -d
ExecStart=/usr/local/bin/docker-compose up -d --remove-orphans
ExecStop=/usr/local/bin/docker-compose down
ExecReload=/usr/local/bin/docker-compose pull --quiet --parallel --ignore-pull-failures
ExecReload=/usr/local/bin/docker-compose up -d
ExecReload=/usr/local/bin/docker-compose up -d --remove-orphans
[Install]
WantedBy=multi-user.target