Skip to content

Commit

Permalink
docker: add mem limit to mongo container
Browse files Browse the repository at this point in the history
  • Loading branch information
changkun committed Dec 27, 2022
1 parent f09f41a commit 09b13c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ services:
restart: always
container_name: redirdb
image: mongo:latest
mem_limit: 512m
memswap_limit: 1g
ports:
- "27018:27017"
volumes:
Expand Down

0 comments on commit 09b13c3

Please sign in to comment.