summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docker-compose.yml16
-rw-r--r--init.sql (renamed from script.sql)0
-rw-r--r--nginx.conf2
3 files changed, 7 insertions, 11 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index bcbd47f..09156b6 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -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
@@ -30,7 +26,7 @@ services:
deploy:
resources:
limits:
- cpus: "0.17"
+ cpus: "0.20"
memory: "110MB"
db:
@@ -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"
diff --git a/script.sql b/init.sql
index a02895a..a02895a 100644
--- a/script.sql
+++ b/init.sql
diff --git a/nginx.conf b/nginx.conf
index c005fad..9a00391 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -1,5 +1,5 @@
events {
- worker_connections 256;
+ worker_connections 1000;
}
http {