CyferShepard / Jellystat

Jellystat is a free and open source Statistics App for Jellyfin
MIT License
1.1k stars 33 forks source link

Docker Compose : (root) additional property logging is not allowed #247

Closed nodecentral closed 1 month ago

nodecentral commented 2 months ago

Hi

Sorry not sure what to provide, as I’m right at the very start trying to get Docker to accept my compose file (via QNAP Container Stations) ? But it returns an exit status 15: (root) additional property logging is not allowed.

image

I took the compose directly from your main repo page, and only changed the bind locations, I have admin privileges on the box and I also validated the YAML was formatted correctly ?

Have you encountered this before ? - Here is my compose file.

version: '3'

services:
  jellystat-db:
    image: postgres:15.2
    container_name: jellystat-db
    restart: unless-stopped
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: mypassword
    volumes:
      - /share/Container/jellystat/postgres-data:/var/lib/postgresql/data

  jellystat:
    image: cyfershepard/jellystat:latest
    container_name: jellystat
    restart: unless-stopped
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: mypassword
      POSTGRES_IP: jellystat-db
      POSTGRES_PORT: 5432
      JWT_SECRET: "my-secret-jwt-key"
      TZ: Europe/London # timezone (ex: Europe/Paris)
    volumes:
      - /share/Container/jellystat/jellystat-backup-data:/app/backend/backup-data
    ports:
      - "8097:3000"
    depends_on:
      - jellystat-db

networks:
  default:

volumes:
  postgres-data:
  jellystat-backup-data:

logging:
  driver: "json-file"
  options:
    max-file: "5" # number of files or file count
    max-size: "10m" # file size
CyferShepard commented 2 months ago

Hi @nodecentral . this sounds like docker issue. not sure what exactly could be the problem. First guess is that logging isnt supported for some reason by your docker instance. you can try and delete that entire logging section below and see if it works

nodecentral commented 2 months ago

Thanks @CyferShepard - that helped,

FYI - while it’s all installed now, it wasnt’ long before I encountered a few other issues :-(

I will try and solve them myself, but if not I’ll submit a ticket.

Thanks again, looking forward to getting Jellystat to work for me