title: Minio install behind Traefik
body: <p>I had the previous version (from last yr) of <code>minio</code> running well behind <code>traefik</code> and on <code>portainer</code> with no issues. I attempted an upgrade 4 days ago to the new version and it's been downhill since then. I get the login page but it won't accept credentials; Error:
  <code>{&quot;code&quot;:500,&quot;detailedMessage&quot;:&quot;Post \&quot;https://storage.example.com/\&quot;: dial tcp &lt;ip&gt;:443: i/o timeout&quot;,&quot;message&quot;:&quot;invalid Login&quot;} </code>
  I suspect it has something to do with the TLS certificate.</p>
  <p>Below is my compose file, I've generated the certs as required; any assistance is is welcomed:</p>
  <pre><code> minio:
  image: minio/minio
  container_name: minio
  restart: unless-stopped
  command: server /data --certs-dir &quot;./minio-data/certs&quot; --address &quot;:9000&quot; --console-address &quot;:9001&quot;
  networks:
    - traefik-proxy2
  expose:
    - &quot;9000&quot;
    - &quot;9001&quot;
  volumes:
    - ./minio-data:/data
  
  environment:
    - &quot;MINIO_ROOT_USER=love&quot;
    - &quot;MINIO_ROOT_PASSWORD=love1234&quot;
    - &quot;MINIO_BROWSER_REDIRECT_URL=https://stash.example.com&quot;
    - &quot;MINIO_SERVER_URL=https://storage.example.com&quot;
  labels:
    - &quot;traefik.enable=true&quot;
    - &quot;traefik.http.services.minio.loadbalancer.server.port=9000&quot;
    - &quot;traefik.http.routers.minio.rule=Host(`storage.example.com`)&quot;
    - &quot;traefik.http.middlewares.minio-https-redirect.redirectscheme.scheme=https&quot;
    - &quot;traefik.http.routers.minio.middlewares=minio-https-redirect&quot;
    - &quot;traefik.http.routers.minio.entrypoints=https&quot;
    - &quot;traefik.http.routers.minio.service=minio&quot;
    - &quot;traefik.http.routers.minio.tls=true&quot;
    - &quot;traefik.http.routers.minio.tls.certresolver=http&quot;
    - &quot;traefik.http.services.minio-console.loadbalancer.server.port=9001&quot;
    - &quot;traefik.http.routers.minio-console.rule=Host(`stash.example.com`)&quot;
  </code></pre>