/config/nginx/nginx.conf is a directory

Hi,

when I try to run my docker-compose with linuxserver/letsencrypt image, I can get the ssl certificate, but then I get this error in the log:

nginx: [crit] pread() "/config/nginx/nginx.conf" failed (21: Is a directory)

My docker-compose file is basic:
version: ‘3.7’
nginx:
image: linuxserver/letsencrypt
container_name: nginx
cap_add:
- NET_ADMIN
ports:
- 80:80
- 443:443
restart: unless-stopped
volumes:
- /opt/appdata/nginx/config:/config
environment:
- PUID=1000
- PGID=1000
- EMAIL=email@example.com
- URL=example.com
- SUBDOMAINS=wildcard,
- VALIDATION=dns
- DNSPLUGIN=digitalocean
- DHLEVEL=4096
- TZ=Europe/Rome

Try deleting that file/folder and restart container