Skip to content

Commit f824728

Browse files
committed
Limit resources for the worker in docker-compose.yaml
To always check worker in a constrained environment.
1 parent e485287 commit f824728

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.dockerignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
*.md
22
/LICENSE
33
/docs
4-
Dockerfile
4+
docker-compose.yaml
5+
Dockerfile

docker-compose.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
services:
22
worker:
33
build: .
4+
deploy:
5+
resources:
6+
limits:
7+
cpus: 0.5
8+
memory: 64MB
49
ports:
510
- 8080:8080

0 commit comments

Comments
 (0)