lib/kontena/machine/digital_ocean/cloudinit_master.yml in kontena-plugin-digitalocean-0.1.0 vs lib/kontena/machine/digital_ocean/cloudinit_master.yml in kontena-plugin-digitalocean-0.1.1
- old
+ new
@@ -52,10 +52,11 @@
ExecStartPre=-/usr/bin/docker stop kontena-server-mongo
ExecStartPre=-/usr/bin/docker rm kontena-server-mongo
ExecStart=/usr/bin/docker run --name=kontena-server-mongo \
--volumes-from=kontena-server-mongo-data \
mongo:3.0 mongod --smallfiles
+ ExecStop=/usr/bin/docker stop kontena-server-mongo
<% end -%>
- name: kontena-server-api.service
command: start
enable: true
content: |
@@ -92,10 +93,11 @@
<% if auth_server %>
-e AUTH_API_URL=<%= auth_server %> \
<% end -%>
-e VAULT_KEY=${KONTENA_VAULT_KEY} -e VAULT_IV=${KONTENA_VAULT_IV} \
kontena/server:${KONTENA_VERSION}
+ ExecStop=/usr/bin/docker stop kontena-server-api
- name: kontena-server-haproxy.service
command: start
enable: true
content: |
@@ -116,5 +118,6 @@
EnvironmentFile=-/etc/kontena-server.custom.env
ExecStartPre=-/usr/bin/docker stop kontena-server-haproxy
ExecStartPre=-/usr/bin/docker rm kontena-server-haproxy
ExecStartPre=-/usr/bin/docker pull kontena/haproxy:latest
ExecStart=/opt/bin/kontena-haproxy.sh
+ ExecStop=/usr/bin/docker stop kontena-server-haproxy