For some reason I can't get persistent storage to work with alertmanager. This is my compose:
alertmanager:
image: 'my/alertmanager/prod:latest'
restart: always
volumes:
- alertmanager-data:/alertmanager-data
command:
- '--config.file=/alertmanager/alertmanager-config.yml'
- '--storage.path=/alertmanager-data'
ports:
- 9103:9093
volumes:
alertmanager-data:
external: true
I have created the volume and everything seems to initialise correctly. But after entering the machine /alertmanager-data doesn't seem to contain any DB or files. And creating new silences on the alertmanager never persist.