From 0f88abd219d21353deb063fcbb6e8cb12ea40c27 Mon Sep 17 00:00:00 2001 From: Saba Date: Mon, 4 Jul 2022 14:01:59 -0400 Subject: [PATCH] Allocate 8GB of memory to docker container. Adjust path to Dockerfile in Github action --- .github/workflows/build.yml | 2 +- docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5ea7996d..f402734d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,7 +27,7 @@ jobs: uses: docker/build-push-action@v2 with: context: . - file: config/Dockerfile + file: Dockerfile push: true tags: ghcr.io/${{ github.repository }}:latest build-args: | diff --git a/docker-compose.yml b/docker-compose.yml index 07daded2..54d070c5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -31,6 +31,6 @@ services: deploy: resources: limits: - memory: 2GB + memory: 8GB # Use 0.0.0.0 to explicitly set the host ip for the service on the container. https://pythonspeed.com/articles/docker-connection-refused/ command: --host="0.0.0.0" --port=8000 -c=config/sample_config.yml -vv