• 0 Posts
  • 6 Comments
Joined 2 years ago
cake
Cake day: June 13th, 2023

help-circle


  • version: "3.0"
    
    networks:
      web:
        external: true
    
    services:
      prusaslicer:
        image: keyglitch/prusaslicer
        volumes:
          - share:/home/slic3r/share:z
          - ./slic3r:/home/slic3r
        depends_on:
          - novnc
        environment:
          DISPLAY: novnc:0.0
          WIDTH: 1920
          HEIGHT: 1080
        entrypoint: ""
        command: 
          - /bin/sh
          - -c
          - /bin/sleep 3 && /Slic3r/slic3r-dist/prusa-slicer
    
      novnc:
        image: theasp/novnc:latest
        networks:
          web:
          default:
        environment:
          RUN_XTERM: "yes"
          RUN_FLUXBOX: "yes"
          DISPLAY_WIDTH: 1920
          DISPLAY_HEIGHT: 1080
        labels:
          traefik.enable: true
          traefik.docker.network: web
          traefik.http.routers.slicer.rule: Host(`slicer.myurl.com`)
          traefik.http.routers.slicer.tls.certResolver: le
          traefik.http.routers.slicer.middlewares: auth@file
    
    

    You’ll have to add something to be able to transfer files to the share volume separately. I use machines/filestash and dperson/samba.