diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-03-04 19:43:57 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-03-04 19:43:57 +0100 |
| commit | 2ce74ce3d489a1675caafcbb5d74488de0c4e3ea (patch) | |
| tree | d9eb8c2f0ed052c1727ac61bb683ab961d416105 /docker-compose.yml | |
| parent | 2b5af5146d7c22eac4a5150a038a05620ec5b8a3 (diff) | |
build(docker): add cpu and memory limit
Diffstat (limited to 'docker-compose.yml')
| -rw-r--r-- | docker-compose.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index 791f1ef..297ce14 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,6 +9,14 @@ services: APP_ENV: production DOCKER_PORT: ${APP_DOCKER_PORT:-3000} container_name: apcom + deploy: + resources: + limits: + cpus: '0.2' + memory: 50M + reservations: + cpus: '0.1' + memory: 20M env_file: - .env environment: @@ -25,6 +33,14 @@ services: APP_ENV: staging DOCKER_PORT: ${APP_STAGING_DOCKER_PORT:-3200} container_name: apcom-staging + deploy: + resources: + limits: + cpus: '0.2' + memory: 50M + reservations: + cpus: '0.1' + memory: 20M env_file: - .env environment: |
