Bumped compose version to .97
This commit is contained in:
@@ -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",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user