@flowfuse/driver-docker 2.10.0 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/docker.js +5 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/docker.js
CHANGED
|
@@ -17,7 +17,10 @@ const createContainer = async (project, domain) => {
|
|
|
17
17
|
AttachStdout: false,
|
|
18
18
|
AttachStderr: false,
|
|
19
19
|
HostConfig: {
|
|
20
|
-
NetworkMode: this._network
|
|
20
|
+
NetworkMode: this._network,
|
|
21
|
+
RestartPolicy: {
|
|
22
|
+
Name: 'unless-stopped'
|
|
23
|
+
}
|
|
21
24
|
}
|
|
22
25
|
}
|
|
23
26
|
|
|
@@ -136,7 +139,7 @@ const createContainer = async (project, domain) => {
|
|
|
136
139
|
}
|
|
137
140
|
|
|
138
141
|
if (!containerFound) {
|
|
139
|
-
this._app.log.info(`Container for stack ${
|
|
142
|
+
this._app.log.info(`Container for stack ${project.ProjectStack.name} not found, pulling ${stack.container}`)
|
|
140
143
|
// https://github.com/apocas/dockerode/issues/703
|
|
141
144
|
try {
|
|
142
145
|
await new Promise((resolve, reject) => {
|