Merge pull request #86 from shaunakg/patch-1

Include `-m` flag in `docker run` call to limit memory per container
This commit is contained in:
Radon Rosborough 2021-07-26 17:31:48 -07:00 committed by GitHub
commit 6845be0ca1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -349,6 +349,7 @@ func (sv *supervisor) reload() error {
"-p", fmt.Sprintf("127.0.0.1:%d:6119", port), "-p", fmt.Sprintf("127.0.0.1:%d:6119", port),
"-e", "FATHOM_SITE_ID", "-e", "FATHOM_SITE_ID",
"-e", "RIJU_DEPLOY_CONFIG", "-e", "RIJU_DEPLOY_CONFIG",
"-m", "200m",
"--label", fmt.Sprintf("riju.deploy-config-hash=%s", deployCfgHash), "--label", fmt.Sprintf("riju.deploy-config-hash=%s", deployCfgHash),
"--name", name, "--name", name,
"--restart", "unless-stopped", "--restart", "unless-stopped",