Rpi3 - gpio - nodered - not working

Hi,
i’m trying to get the GPIOs working in a node-red docker.

I’ve created a “mynodered_dev” service based on resin base image (“FROM resin/raspberrypi3-node:latest” in my dockerfile).

Then in the “docker-compose.yml” i’ve granted access to “/dev/mem” as follows:
image

However, when i start the docker, i get the following error:
“RuntimeError: No access to /dev/mem. Try running as root!”
image

What am i doing wrong?

This is the full log:
01.05.18 21:46:44 (+0200) Welcome to Node-RED
01.05.18 21:46:44 (+0200) ===================
01.05.18 21:46:44 (+0200)
01.05.18 21:46:44 (+0200) 1 May 19:46:44 - [info] Node-RED version: v0.18.4
01.05.18 21:46:44 (+0200) 1 May 19:46:44 - [info] Node.js version: v9.5.0
01.05.18 21:46:44 (+0200) 1 May 19:46:44 - [info] Linux 4.9.59 arm LE
01.05.18 21:46:47 (+0200) 1 May 19:46:47 - [info] Loading palette nodes
01.05.18 21:46:50 (+0200) 1 May 19:46:50 - [info] Settings file : /usr/src/node-red/settings.js
01.05.18 21:46:50 (+0200) 1 May 19:46:50 - [info] User directory : /data/mynodered_dev
01.05.18 21:46:50 (+0200) 1 May 19:46:50 - [warn] No active project : using default flows file
01.05.18 21:46:50 (+0200) 1 May 19:46:50 - [info] Flows file : /data/mynodered_dev/flows.json
01.05.18 21:46:50 (+0200) 1 May 19:46:50 - [info] Server now running at https://127.0.0.1:1881/
01.05.18 21:46:50 (+0200) 1 May 19:46:50 - [debug] loaded flow revision: 10cf784cc2dd2f9bf3931f4ca6521a97
01.05.18 21:46:50 (+0200) 1 May 19:46:50 - [debug] red/runtime/nodes/credentials.load : no user key present
01.05.18 21:46:50 (+0200) 1 May 19:46:50 - [debug] red/runtime/nodes/credentials.load : using default key
01.05.18 21:46:50 (+0200) 1 May 19:46:50 - [debug] red/runtime/nodes/credentials.load : keyType=system
01.05.18 21:46:50 (+0200) 1 May 19:46:50 - [info] Starting flows
01.05.18 21:46:50 (+0200) 1 May 19:46:50 - [debug] red/nodes/flows.start : starting flow : global
01.05.18 21:46:50 (+0200) 1 May 19:46:50 - [debug] red/nodes/flows.start : starting flow : c538127e.cf089
01.05.18 21:46:50 (+0200) 1 May 19:46:50 - [info] Started flows
01.05.18 21:46:50 (+0200) 1 May 19:46:50 - [info] [rpi-gpio out:cd90644c.cb2c08] err: Traceback (most recent call last):
01.05.18 21:46:50 (+0200) File “/usr/src/node-red/node_modules/node-red/nodes/core/hardware/nrgpio.py”, line 83, in
01.05.18 21:46:50 (+0200) :
01.05.18 21:46:50 (+0200) 1 May 19:46:50 - [info] [rpi-gpio out:cd90644c.cb2c08] err: GPIO.setup(pin,GPIO.OUT)
01.05.18 21:46:50 (+0200) RuntimeError: No access to /dev/mem. Try running as root!
01.05.18 21:46:50 (+0200) :
01.05.18 21:46:50 (+0200) 1 May 19:46:50 - [info] [rpi-gpio out:cd90644c.cb2c08] closed