Skip to content

Commit

Permalink
Merge pull request #4986 from BacLuc/restrict-database
Browse files Browse the repository at this point in the history
docker-compose.yml: make it easy to restrict db resources
  • Loading branch information
BacLuc committed Jun 1, 2024
2 parents 15a7d7c + 45a9d4b commit 455df58
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/reusable-e2e-tests-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
name: 'Tests: End-to-end'
runs-on: ubuntu-latest
timeout-minutes: 20
env:
DB_CPU_LIMIT: 4
strategy:
fail-fast: false
matrix:
Expand Down
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ services:
- target: 5432
published: 5432
protocol: tcp
deploy:
resources:
limits:
memory: ${DB_MEMORY_LIMIT:-128G}
cpus: ${DB_CPU_LIMIT:-8}

mail:
image: maildev/maildev
Expand Down

0 comments on commit 455df58

Please sign in to comment.