Bumped compose version to .97

This commit is contained in:
frikky
2021-05-29 18:18:59 +02:00
parent 010659c86c
commit 35336663d7
12 changed files with 48 additions and 20 deletions
+6
View File
@@ -122,11 +122,17 @@ func getThisContainerId() {
// https://docs.docker.com/engine/api/sdk/examples/
func deployWorker(image string, identifier string, env []string) {
// Binds is the actual "-v" volume.
// Max 20% CPU every second
hostConfig := &container.HostConfig{
LogConfig: container.LogConfig{
Type: "json-file",
Config: map[string]string{},
},
Resources: container.Resources{
CPUShares: 256,
CPUQuota: 25000,
CPUPeriod: 100000,
},
Binds: []string{
"/var/run/docker.sock:/var/run/docker.sock:rw",
},