Skip to content

Commit

Permalink
set WildFly max mem to 70% of VM
Browse files Browse the repository at this point in the history
Default WildFly max mem is set to 512Mb
  • Loading branch information
redmitry authored Dec 5, 2023
1 parent 5aea7dc commit 0b5fbce
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docker/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
version: '3.9'
version: '3'

networks:
beacon-network:

x-environment: &postgres
x-environment: &env
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_BN_DATABASE=beacon-network
- BEACON_NETWORK_CONFIG_DIR=/wildfly/BEACON-INF
- BEACON_NETWORK_DB_CONNECTION_URL=jdbc:postgresql://postgres:5432/beacon-network
- BEACON_NETWORK_DB_USERNAME=beacon
- BEACON_NETWORK_DB_PASSWORD=beacon

- JBOSS_JAVA_SIZING=-XX:+UseContainerSupport -XX:MaxRAMPercentage=70.0 -Xms128m
services:
postgres:
image: postgres:16.0-alpine
restart: always
environment: *postgres
volumes:
environment: *env
volumes:.
- ./postgresql/data:/var/lib/postgresql/data
- ./postgresql/init.sh:/docker-entrypoint-initdb.d/init.sh:ro
networks:
Expand All @@ -37,4 +37,4 @@ services:
- '8080:8080'
- '8009:8009'
- '8443:8443'
environment: *postgres
environment: *env

0 comments on commit 0b5fbce

Please sign in to comment.