version: "3"
services:
  application:
    build: .
    container_name: thingsboard
    environment:
      - JAVA_OPTS=${JAVA_OPTS:-"-Xmx6124m"}
      - CACHE_EVENTS=${CACHE_EVENTS:-/caching-approaches-comparison/applications/output/thingsboard-developers-cache}
      - CACHE_REGISTER_SIZE=false
    volumes:
      - application:/application
      - /root/.m2:/root/.m2
      - ~/.npm:/root/.npm
      - /root/.gradle:/home/gradle/.gradle
      - ../../../:/caching-approaches-comparison
    restart: unless-stopped
    ports:
      - 8080:8080
    logging:
      options:
        max-size: "10m"
        max-file: "10"
volumes:
  application: