Skip to content

Commit

Permalink
Merge branch 'postgres-cpu-mem-limit' of https://github.com/hbz/strap…
Browse files Browse the repository at this point in the history
…i-rpb

Resolves #68
  • Loading branch information
fsteeg committed Dec 5, 2024
2 parents 4d53672 + a7ec50f commit 2561ccd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docker-compose-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ services:
env_file: .env
image: postgres:12.0-alpine
shm_size: '1gb'
deploy:
resources:
limits:
cpus: '3.0' # number of cores
memory: 4GB
reservations:
cpus: '0.5'
memory: 512M
environment:
POSTGRES_USER: ${DATABASE_USERNAME}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
Expand Down

0 comments on commit 2561ccd

Please sign in to comment.