Skip to content

Commit

Permalink
Increase Max Memory
Browse files Browse the repository at this point in the history
  • Loading branch information
smashedr committed Aug 18, 2024
1 parent d5c50c7 commit 1f950d8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docker-compose-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ services:
command: "watchmedo auto-restart -d /app -p '*.py' -R -- celery -A project worker -l INFO -c 4"
deploy:
replicas: 1
resources:
limits:
cpus: "2.0"
memory: 256M
volumes:
#- data_dir:/data
- ${APP_FILES:-./app}:/app
Expand Down
6 changes: 5 additions & 1 deletion docker-compose-swarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ services:
resources:
limits:
cpus: "2.0"
memory: 128M
memory: 256M
volumes:
- data_dir:/data
depends_on:
Expand All @@ -128,6 +128,10 @@ services:
command: "celery -A project worker -l INFO -c 2"
deploy:
replicas: 1
resources:
limits:
cpus: "2.0"
memory: 256M
#volumes:
# - data_dir:/data
depends_on:
Expand Down
6 changes: 5 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ services:
resources:
limits:
cpus: "2.0"
memory: 128M
memory: 256M
volumes:
- data_dir:/data
depends_on:
Expand All @@ -56,6 +56,10 @@ services:
command: "celery -A project worker -l INFO -c 2"
deploy:
replicas: 1
resources:
limits:
cpus: "2.0"
memory: 256M
#volumes:
# - data_dir:/data
depends_on:
Expand Down

0 comments on commit 1f950d8

Please sign in to comment.