Cifs share on stack docker

manustar

New Member
May 16, 2023
2
0
1
hi all, I state that I am not an expert on proxmox and I am seeing many guides, I have followed the various posts to mount a cifs and give permissions to an lcx and from the console I can create folders (before I had access denied), having said that i created a stack on portainer for docker creation but let's all say it gives me access denied on volumes. this is my stack and i can't figure out where i go wrong


Code:
services:
    frigate:
      container_name: frigate
      image: ghcr.io/blakeblackshear/frigate:stable
      restart: unless-stopped
      devices:
        - /dev/dri/renderD128
      volumes:
        - /etc/localtime:/etc/localtime
        - /root/frigate:/config:rw
        - /media/NAS/frigate/clips:/media/frigate/clips:rw
        - /media/NAS/frigate/records:/media/frigate/recordings:rw
      ports:
        - 5000:5000
        - 1935:1935

    prometheus:
      image: prom/prometheus:latest
      container_name: prometheus
      ports:
        - "9090:9090"
      volumes:
        - /media/NAS/datadocker/prometheus/etc:/etc/prometheus
        - /media/NAS/datadocker/prometheus:/prometheus
      restart: unless-stopped
      command:
         - "--config.file=/media/NAS/datadocker/prometheus/etc
#        - "--config.file=/etc/prometheus/prometheus.yml"

    grafana:
      image: grafana/grafana:latest
      container_name: grafana
      ports:
        - "3000:3000"
      volumes:
        - /media/NAS/datadocker/grafana:/var/lib/grafana
#        - grafana-data:/var/lib/grafana
      restart: unless-stopped
#volumes:
#    prometheus_data: {}
#    grafana_data: {}

and this fstab

Code:
//192.168.1.3/container/datadocker/registrazioni  /media/NAS/frigate  cifs vers=3.0,_netdev,x-systemd.automount,noatime,uid=100000,gid=110000,dir_mode=0770,file_mode=0770,credentials=/home/.cifscreds 0 0
//192.168.1.3/container/datadocker/filedocker  /media/NAS/datadocker  cifs vers=3.0,_netdev,x-systemd.automount,noatime,uid=100000,gid=110000,dir_mode=0770,file_mode=0770,credentials=/home/.cifscreds 0 0
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!