services: komga: image: gotson/komga container_name: komga volumes: - type: bind source: /docker/appdata/komga/config target: /config - type: bind source: /docker/appdata/komga/data target: /data - type: bind source: /etc/timezone #alternatively you can use a TZ environment variable, like TZ=Europe/London target: /etc/timezone read_only: true ports: - 25600:25600 user: "1000:1000" # remove the whole environment section if you don't need it environment: - JAVA_TOOL_OPTIONS=-Xmx4g restart: unless-stopped