mirror of
https://github.com/luzifer-ansible/docker-compose.git
synced 2024-12-22 17:01:17 +00:00
Use "remove-orphans" to remove deleted services
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
68cc398a89
commit
647cbff51f
1 changed files with 2 additions and 2 deletions
|
@ -51,12 +51,12 @@
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
|
|
||||||
ExecStartPre=/usr/local/bin/docker-compose pull --quiet --parallel --ignore-pull-failures
|
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
|
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 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]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in a new issue