Docker compose, mount a volume

Hi,
I'm trying to to mount a volume with docker compose this compose file.
But it doesn't work. Please help. Thank u.

version: "3.7"

services:
  node-red:
    image: nodered/node-red:latest
    environment:
      - TZ=Asia/Singapore
    ports:
      - "5002:1880"
    networks:
      - node-red-net
    volumes:
       - node-red-data:/home/shan/MyWork/Node_red-docker/test_folder

volumes:
  node-red-data:

networks:
  node-red-net:

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.