# # This is a JPSONIC boot configuration sample in Windows or in Mac or in Linux without UPnP. # You can easily start Jpsonic by changing the volume, port and so on. # # usege: # docker-compose -f production.windows.yml up -d # version: '3.9' services: app: image: 'jpsonic/jpsonic:latest' container_name: 'jpsonic' # The host networking driver only works on Linux hosts, # and is not supported on Docker Desktop for Mac Docker Desktop for Windows, # or Docker EE for Windows Server. # https://docs.docker.com/network/host/ network_mode: 'bridge' hostname: 'jpsonic' # : # Please set "the port of host" properly. ports: # Port for Jpsonic. - '8080:4040' # Port for JMX. The "ea" tag image is required to use JMX. # - 3333:3333 pid: host volumes: # : # Please rewrite "the path of host" appropriately. - '/c/tmp/jpsonic/data:/jpsonic/data' - '/c/tmp/jpsonic/music:/jpsonic/music' - '/c/tmp/jpsonic/podcasts:/jpsonic/podcasts' - '/c/tmp/jpsonic/playlists:/jpsonic/playlists' # If the UID/GUI is not correct, Jpsonic will not start. # If you need to check the permissions of the data directory, # rewrite the entrypoint and check it. # # entrypoint: ls -n /jpsonic/data environment: # Set the appropriate UID/GID. USER_ID: '0' GROUP_ID: '0' # Please specify the appropriate timezone TIME_ZONE: 'Asia/Tokyo' # Jpsonic context path. CONTEXT_PATH: '/' # Whether to log the logo at startup. [OFF|CONSOLE|LOG] BANNER_MODE: 'OFF' # Granularity of output logs. [ERROR|WARN|INFO|DEBUG|TRACE] LOG_LEVEL: 'WARN' # Whether to scan at startup. False is recommended for Docker. SCAN_ON_BOOT: 'false' # If false, use the logical font of JRE (JDK) for Cover Art. # If true, preferentially use embedded fonts. EMBEDDED_FONT: 'false' # You can override the MIME of DSD according to your device. MIME_DSF: 'audio/x-dsd' MIME_DFF: 'audio/x-dsd' # Specify the appropriate Java options. # Currently, Jpsonic will not require extremely large memory. # If you are using 32 bit OS please specify -Xmx256m JAVA_OPTS: '-Xmx512m' # Option example when using JMX. The "ea" tag image is required to use JMX. # For VisualVM, you need to specify the port in File-Add JMX Connection. # e.g. localhost:3333 #  #JAVA_OPTS: > # -Xmx512m # -Dcom.sun.management.jmxremote # -Dcom.sun.management.jmxremote.port=3333 # -Dcom.sun.management.jmxremote.rmi.port=3333 # -Dcom.sun.management.jmxremote.local.only=false # -Dcom.sun.management.jmxremote.ssl=false # -Dcom.sun.management.jmxremote.authenticate=false # -Djava.rmi.server.hostname=localhost # Usually no need to change. # Unlike other Sonic servers, Jpsonic has a graceful shutdown implemented. # After receiving the 'kill 15' of Docker message, it will phase out, and finnaly shut down the database. # In case of emergency shutdown during critical processing, # there may be a wait time of up to 30 seconds to protect data. TINI_SUBREAPER: 'true' stop_grace_period: '30s'