Peristent storage

Hi
I configured my docker-compose for persistent storage and it works fine if I stop and start my container, however if I click restart all my data is gone again. Is it possible to make data persistent after a restart?

My docker-compose:

    version: '2'

services:
  myservice:
    build: ./myservice
    restart: no
    volumes:
      - myservice-conf:/opt/myservice

volumes:
  myservice-conf:

Hi @nikost - that’s odd, could you provide a few more details on how you’re testing this? With this setup, anything you write to /opt/myservice should persist after restarts. Maybe seeing logs from the device would help, and any scripts you’re using to write to that folder and the like.

Also, what OS version is this on?