Skip to content

Commit

Permalink
fix limit resources for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
1oannis committed Oct 14, 2024
1 parent bdaca0b commit bdf7c49
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ services:
- "80:3000"
env_file:
- .env.local
hostname: homepage-dev
cap_drop: [ALL]
deploy:
resources:
limits:
cpus: '1.0'
memory: 2G
reservations:
cpus: '1.0'
memory: 1G

prod:
build:
Expand All @@ -25,6 +35,16 @@ services:
- "80:3000"
env_file:
- .env.local
hostname: homepage-prod
cap_drop: [ALL]
deploy:
resources:
limits:
cpus: '1.0'
memory: 2G
reservations:
cpus: '1.0'
memory: 1G

volumes:
node_modules:

0 comments on commit bdf7c49

Please sign in to comment.