Graylog Docker Tutorial Commands

It should be /logdata:/usr/share/graylog/data

On linux use forward slashes, you should not use a backslash () in Linux file paths. Also the type of mount you want in docker is called a bind mount.

Did I really make a noob mistake or mistype?
Made sure it was set and now fails with:
graylog mkdir: cannot create directory ‘/usr/share/graylog/data/journal’
That I got fixed by changing the folder to owner 1100 as outlined on a docker community post. ERROR: Unable to access file /usr/share/graylog/data/journal/graylog2-committed-read-offset: Permission denied · Issue #2155 · Graylog2/graylog2-server · GitHub
Still after that I then get the error that it can’t find the /usr/share/graylogdata/config/graylog.conf

volumes:

  • “${PWD}/config/graylog/graylog.conf:/usr/share/graylog/config/graylog.conf”
  • “/mnt/graylogdata/graylog:/usr/share/graylog/data”

If this is a mounted share you probably need to make sure you have the proper permissions set.

Yes, the docker compose file that @LTS_Tom has posted does work as a stack in Portainer. I did this to get my Graylog up and running.