Skip to content

Commit

Permalink
chore: prod resource tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Nov 27, 2023
1 parent 721def2 commit 65022e7
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions docker-compose-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@ services:
PROD: true
deploy:
replicas: 2
resources:
limits:
cpus: '0.50'
memory: '512M'
reservations:
cpus: '0.25'
memory: '128M'
mem_limit: '512m'
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost']
interval: 10s
Expand All @@ -25,14 +19,7 @@ services:
- ./src/storage/logs:/var/www/html/storage/logs
- ./src/storage/app/public:/var/www/html/public/storage
glass-db:
deploy:
resources:
limits:
cpus: '0.50'
memory: '512M'
reservations:
cpus: '0.25'
memory: '128M'
mem_limit: '768m'
healthcheck:
test: ['CMD', 'mariadb', '-u${MARIADB_USER}', '-p${MARIADB_PASSWORD}', '-e', 'show databases;']
interval: 10s
Expand Down

0 comments on commit 65022e7

Please sign in to comment.