Failing to deploy panoptikon. Can anyone walk me through this? (25.04)

I’ve spent more time than I can even endure walled by trying to deploy this project on docker. First I found out I needed to build the images, not a big deal to be honest, then I found out the app system doesn’t allow multiple containers so I attempted to move over to doing this within portainer and dockge. Neither had any better luck sometimes throwing errors related to a lack of a certain thing on path, or other times having trouble with xgnix’s directories. I have no idea what I am supposed to do, so I was hoping someone could install it on their machine and tell me what to do, but if you’re not interested in going that far, heres the last error report I get.

Failed to deploy a stack: compose up operation failed: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/data/compose/2/nginx-config/nginx.conf" to rootfs at "/etc/nginx/conf.d/default.conf": create mountpoint for /etc/nginx/conf.d/default.conf mount: cannot create subdirectories in "/mnt/.ix-apps/docker/overlay2/eed45d0a94ce63dd407b09367c899bbe7793ac9441122be64904a487c3a94279/merged/etc/nginx/conf.d/default.conf": not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
services:
  inferio:
    restart: unless-stopped
    build: .
    container_name: inferio
    environment:
      - INFERIO_HOST=0.0.0.0
      - INFERIO_PORT=7777
      - LOGLEVEL=INFO
      - LOGS_FILE=/logs/inferio.log
      #- JINA_API_KEY=${JINA_API}
      #- JINA_TIMEOUT=15
      #- NO_CUDNN=true
    volumes:
      - ./inferio:/logs
      - ./cudnn:/app/cudnn
      - ./cache:/home/ubuntu/.cache
    entrypoint: [ "bash", "./inferio-start.sh" ]
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: 1
              capabilities: [ gpu ]
  panoptikon:
    restart: unless-stopped
    build: .
    container_name: panoptikon
    environment:
      - HOST=0.0.0.0
      - PORT=6342
      - DATA_FOLDER=data
      - LOGLEVEL=INFO
      - ENABLE_CLIENT=false
      - DISABLE_CLIENT_UPDATE=true
      - NO_CUDNN=true
      - INFERENCE_API_URL=http://inferio:7777
    volumes:
      - ./data:/app/data
      - ${FILE_FOLDER_PATH}:/files
    depends_on:
      - inferio
  panoptikon-ui-private:
    restart: unless-stopped
    # Normal Mode (Private)
    image: ghcr.io/reasv/panoptikon-ui:master
    container_name: panoptikon-ui-private
    environment:
      - PANOPTIKON_API_URL=http://panoptikon:6342
      - INFERENCE_API_URL=http://inferio:7777
      - RESTRICTED_MODE=false
    depends_on:
      - panoptikon

  panoptikon-ui-public:
    restart: unless-stopped
    # Restricted Mode (Public)
    image: ghcr.io/reasv/panoptikon-ui:master
    container_name: panoptikon-ui-public
    environment:
      - PANOPTIKON_API_URL=http://panoptikon:6342
      - INFERENCE_API_URL=http://inferio:7777
      - RESTRICTED_MODE=true
    depends_on:
      - panoptikon

  nginx:
    restart: unless-stopped
    image: nginx:latest
    container_name: nginx
    ports:
      - "6339:80" # Exposed port for Restricted Mode (Public)
      - "6340:8080" # Exposed port for Normal Mode (Private)
    volumes:
      - ./nginx-config/nginx.conf:/etc/nginx/conf.d/default.conf:ro
    depends_on:
      - panoptikon-ui-private
      - panoptikon-ui-public
      - panoptikon

this is the compose file of the project. i modified one of the file structures to my smb and also pointed the containers to local images instead, but it seems like at least for right now nginx is the problem. ai keeps telling me its a directory vs file problem, but I cant imagine a situation where I’m the one thats supposed to go create a file or directory instead of the other in a compose file. it doesn’t make any sense for that to happen since its supposed to be automated.

https://github.com/reasv/panoptikon/blob/master/docker-compose.yml

dumfounded why i cant link the project im talking about.

Browse some other threads and do the Tutorial by the Bot to get your forum trust level up. Links and images should be allowed then

TrueNAS-Bot
Type this in a new reply and send to bring up the tutorial, if you haven’t done it already.

@TrueNAS-Bot start tutorial

thanks for the info. Since afaik this app cannot be installed through the conventional add through yaml due to having more than one container I’m not sure this would really have much to offer me.