We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0e30025 + 89a2bc4 commit 4ab3b67Copy full SHA for 4ab3b67
installer.go
@@ -74,7 +74,8 @@ func getServiceName(projectName string) string {
74
75
const serviceTemplate = `[Unit]
76
Description={{ .ProjectName }} Service
77
-After=network.target
+After=network.service docker.service
78
+Requires=docker.service
79
80
[Service]
81
Restart=always
@@ -87,7 +88,7 @@ ExecStop=/usr/bin/env docker-compose -p "{{ .ProjectName }}" -f "{{ .DockerCompo
87
88
ExecStopPost=/usr/bin/env docker-compose -p "{{ .ProjectName }}" -f "{{ .DockerComposeFile }}" down
89
90
[Install]
-WantedBy=network-online.target
91
+WantedBy=docker.service
92
`
93
94
type serviceDefinition struct {
0 commit comments