Files
grimmory/dev.docker-compose.yml
T
briosandcoderabbitai[bot] ad3a981ad1 fix(hibernate): improve transaction management and optimize entity fetching (#176)
* fix(hibernate): improve transaction management and optimize entity fetching

* chore(tests): clean-up comments

* chore: fix config issue in the kotlin dsl

* fix(hibernate): fix entity equality checks

* fix(hibernate): add transactional read-only support to BookService

* Update booklore-api/src/main/java/org/booklore/model/entity/BookLoreUserEntity.java

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* fix(hibernate): remove redundant annotations in BookLoreUserEntity

* fix(hibernate): import Hibernate

* fix(tests): fix merge conflict caused errors

* refactor(book): optimize book retrieval methods and reduce cache sizes

* refactor(metadata): remove lazy loading from description field in BookMetadataEntity

* fix(build): increase max heap size for test tasks

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-04-22 17:27:01 -04:00

66 lines
2.3 KiB
YAML

services:
backend:
build:
context: .
dockerfile_inline: |
FROM gradle:9.3.1-jdk25-alpine
RUN apk add --no-cache libstdc++ libgcc libarchive
RUN ln -s /usr/lib/libarchive.so.13 /usr/lib/libarchive.so
command: sh -c "cd /booklore-api && ./gradlew bootRun"
ports:
- "${BACKEND_PORT:-6060}:6060"
- "127.0.0.1:${REMOTE_DEBUG_PORT:-5005}:5005"
environment:
- DATABASE_URL=jdbc:mariadb://backend_db:3306/grimmory
- DATABASE_USERNAME=grimmory
- DATABASE_PASSWORD=grimmory
- REMOTE_DEBUG_ENABLED=true
- ALLOWED_ORIGINS=http://localhost:4200
- JAVA_TOOL_OPTIONS=-XX:+UseShenandoahGC -XX:ShenandoahGCHeuristics=compact -XX:+UseCompactObjectHeaders -XX:MaxRAMPercentage=60.0 -XX:InitialRAMPercentage=8.0 -XX:+ExitOnOutOfMemoryError -XX:MaxMetaspaceSize=192m -XX:ReservedCodeCacheSize=64m -Xss512k -XX:CICompilerCount=2 -XX:+UnlockExperimentalVMOptions -XX:ShenandoahUncommitDelay=5000 -XX:ShenandoahGuaranteedGCInterval=30000
stdin_open: true
tty: true
restart: unless-stopped
depends_on:
- backend_db
volumes:
- './booklore-api:/booklore-api'
- /booklore-api/build
- /booklore-api/.gradle
- ./shared/data:/app/data
- ./shared/books:/books
- ./shared/bookdrop:/bookdrop
frontend:
image: node:24-alpine
command: sh -c "cd /angular-app && corepack enable && corepack yarn install --immutable && corepack yarn ng serve --host 0.0.0.0 --watch --configuration development"
environment:
- NODE_ENV=development
stdin_open: true
tty: true
restart: unless-stopped
volumes:
- './frontend:/angular-app'
- node_modules:/angular-app/node_modules
ports:
- "${FRONTEND_PORT:-4200}:4200"
backend_db:
image: mariadb:11.4
container_name: backend_db
volumes:
- backend_db:/var/lib/mysql
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=grimmory
- MYSQL_DATABASE=grimmory
- MYSQL_USER=grimmory
- MYSQL_PASSWORD=grimmory
ports:
- "${DB_PORT:-3366}:3306"
healthcheck:
test: ["CMD", "mariadb-admin", "ping", "-h", "localhost", "-uroot", "-pgrimmory"]
interval: 10s
timeout: 5s
retries: 5
volumes:
node_modules:
backend_db: