Skip to content

Commit

Permalink
docker-compose.yml changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowerGamerBR committed Sep 23, 2023
1 parent c823dab commit b79e815
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docker/single-instance/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
POSTGRESQL_PASSWORD: postgres
POSTGRESQL_DATABASE: rinhadebackend
WEBSERVER_PORT: 9999
RINHA_CACHE: true
RINHA_CACHE: false
RINHA_SEARCH: true
RINHA_POOL_SIZE: 16
JAVA_TOOL_OPTIONS: "-verbose:gc -Xmx1792M -Xms1792M -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -XX:+ExitOnOutOfMemoryError"
Expand Down
17 changes: 8 additions & 9 deletions docker/two-instances/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@ services:
deploy:
resources:
limits:
cpus: '0.4'
cpus: '0.35'
memory: '1.0GB'
environment:
POSTGRESQL_ADDRESS: db
POSTGRESQL_USERNAME: postgres
POSTGRESQL_PASSWORD: postgres
POSTGRESQL_DATABASE: rinhadebackend
WEBSERVER_PORT: 9999
RINHA_CACHE: true
RINHA_CACHE: false
RINHA_SEARCH: true
RINHA_POOL_SIZE: 16
JAVA_TOOL_OPTIONS: "-verbose:gc -Xmx768M -Xms768M -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -XX:+ExitOnOutOfMemoryError"
JAVA_TOOL_OPTIONS: "-verbose:gc -Xmx768M -Xms768M -XX:+UnlockExperimentalVMOptions -XX:+AlwaysPreTouch -XX:+ExitOnOutOfMemoryError"
networks:
- rinha-network

Expand All @@ -43,27 +43,26 @@ services:
deploy:
resources:
limits:
cpus: '0.4'
cpus: '0.35'
memory: '1.0GB'
environment:
POSTGRESQL_ADDRESS: db
POSTGRESQL_USERNAME: postgres
POSTGRESQL_PASSWORD: postgres
POSTGRESQL_DATABASE: rinhadebackend
WEBSERVER_PORT: 9999
WEBSERVER_ENGINE: "cio"
RINHA_CACHE: true
RINHA_CACHE: false
RINHA_SEARCH: true
RINHA_POOL_SIZE: 16
JAVA_TOOL_OPTIONS: "-verbose:gc -Xmx768M -Xms768M -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -XX:+ExitOnOutOfMemoryError"
JAVA_TOOL_OPTIONS: "-verbose:gc -Xmx768M -Xms768M -XX:+UnlockExperimentalVMOptions -XX:+AlwaysPreTouch -XX:+ExitOnOutOfMemoryError"
networks:
- rinha-network
db: # Banco de dados
image: postgres
deploy:
resources:
limits:
cpus: '0.4'
cpus: '0.5'
memory: '0.5GB'
environment:
POSTGRES_USER: postgres
Expand Down Expand Up @@ -96,7 +95,7 @@ services:
deploy:
resources:
limits:
cpus: '0.30'
cpus: '0.3'
memory: '0.5GB'
networks:
- rinha-network
Expand Down

0 comments on commit b79e815

Please sign in to comment.