Skip to content

Commit

Permalink
chore: adjust resources
Browse files Browse the repository at this point in the history
  • Loading branch information
molvrr committed Feb 8, 2024
1 parent bdd9f87 commit 43977b1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
16 changes: 6 additions & 10 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,16 @@ version: '3.5'
services:
api01: &api
image: ghcr.io/molvrr/combattant:latest
environment:
- DB_HOST=db
depends_on:
- db
deploy:
resources:
limits:
cpus: "0.20"
memory: "150mb"
cpus: "0.45"
memory: "50mb"

api02:
<<: *api
environment:
- DB_HOST=db

nginx:
image: nginx:latest
Expand All @@ -30,7 +26,7 @@ services:
deploy:
resources:
limits:
cpus: "0.17"
cpus: "0.20"
memory: "110MB"

db:
Expand All @@ -43,9 +39,9 @@ services:
ports:
- "5432:5432"
volumes:
- ./script.sql:/docker-entrypoint-initdb.d/script.sql
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
deploy:
resources:
limits:
cpus: "0.63"
memory: "140MB"
cpus: "0.40"
memory: "340MB"
File renamed without changes.
2 changes: 1 addition & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
events {
worker_connections 256;
worker_connections 1000;
}

http {
Expand Down

0 comments on commit 43977b1

Please sign in to comment.