瀏覽代碼

base#9 docker-compose.service file updated. Related to https://gitlab.com/interlink-sa/flowdat3/modules/base/issues/9 and https://gitlab.com/interlink-sa/flowdat3/documentation/issues/1

Espinoza Guillermo 6 年之前
父節點
當前提交
c5c1be9d28
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      tools/docker-compose.service

+ 2 - 3
tools/docker-compose.service

@@ -1,13 +1,12 @@
 [Unit]
 Description=Docker compose service
-Requires=docker.service
 After=docker.service
 
 [Service]
-Restart=always
 WorkingDirectory=/opt/flowdat
+ExecStartPre=/usr/local/bin/docker-compose down -v
 ExecStart=/usr/local/bin/docker-compose up
-ExecStop=/usr/local/bin/docker-compose down
+ExecStop=/usr/local/bin/docker-compose down -v
 
 [Install]
 WantedBy=local.target