Connection timed out for .js files using Docker Compose via Coolify


Hi, following .js aren't loading while using following docker compose via coolify:

services:
  calibre-web:
    image: 'demitrixrd/calibre-web-automated:dev-dev'
    container_name: calibre-web-n0
    environment:
      PUID: '1000'
      PGID: '1000'
      TZ: CET
      COOLIFY_RESOURCE_UUID: n0
      COOLIFY_CONTAINER_NAME: calibre-web-n0
      COOLIFY_URL: 'https://example.com'
      COOLIFY_FQDN: example.com
    volumes:
      - 'n0_data:/config'
      - 'n0_books:/calibre-library'
      - 'n0_upload:/cwa-book-ingest'
    ports:
      - '8083:8083'
    healthcheck:
      test:
        - CMD
        - curl
        - '-f'
        - 'http://127.0.0.1:8083'
      interval: 5s
      timeout: 20s
      retries: 10
    restart: unless-stopped
    labels:
      - coolify.managed=true
      - coolify.version=4.0.0-beta.392
      - coolify.serviceId=18
      - coolify.type=service
      - coolify.name=calibre-web-n0
      - coolify.resourceName=calibre-web-automated
      - coolify.projectName=privat
      - coolify.serviceName=calibre-web
      - coolify.environmentName=production
      - coolify.pullRequestId=0
      - coolify.service.subId=26
      - coolify.service.subType=application
      - coolify.service.subName=calibre-web
      - traefik.enable=true
      - traefik.http.middlewares.gzip.compress=true
      - traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https
      - traefik.http.routers.http-0-n0-calibre-web.entryPoints=http
      - traefik.http.routers.http-0-n0-calibre-web.middlewares=redirect-to-https
      - 'traefik.http.routers.http-0-n0-calibre-web.rule=Host(`example.com`) && PathPrefix(`/`)'
      - traefik.http.routers.https-0-n0-calibre-web.entryPoints=https
      - traefik.http.routers.https-0-n0-calibre-web.middlewares=gzip
      - 'traefik.http.routers.https-0-n0-calibre-web.rule=Host(`example.com`) && PathPrefix(`/`)'
      - traefik.http.routers.https-0-n0-calibre-web.tls.certresolver=letsencrypt
      - traefik.http.routers.https-0-n0-calibre-web.tls=true
      - 'caddy_0.encode=zstd gzip'
      - 'caddy_0.handle_path.0_reverse_proxy={{upstreams 8083}}'
      - 'caddy_0.handle_path=/*'
      - caddy_0.header=-Server
      - 'caddy_0.try_files={path} /index.html /index.php'
      - 'caddy_0=https://example.com'
      - caddy_ingress_network=n0
    networks:
      n0: null
volumes:
  n10_data:
    name: n1_data
  n2_books:
    name: n2_books
  n3_upload:
    name: n3_upload
networks:
  N0:
    name: n0
    external: true
configs: {  }
secrets: {  }

The files are loading as expected via http over IP.

Enable and check Traefik debug log (doc) and Traefik access log in JSON format (doc).

Thank you. The issue was the gzip compression, apparently it messes up access to .js files.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.