Skip to content

Commit

Permalink
Add "unless-stopped" flag to containers
Browse files Browse the repository at this point in the history
fixes #114
  • Loading branch information
hardillb committed Oct 28, 2024
1 parent e2300c3 commit dd635aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ const createContainer = async (project, domain) => {
AttachStdout: false,
AttachStderr: false,
HostConfig: {
NetworkMode: this._network
NetworkMode: this._network,
RestartPolicy: {
Name: 'unless-stopped'
}
}
}

Expand Down

0 comments on commit dd635aa

Please sign in to comment.