Reputation: 782
I am trying to setup notification for my private docker registry. But i am getting the following error from the docker compose file
PS C:\mydockerregistry> docker-compose up
ERROR: The Compose file '.\docker-compose.yml' is invalid because: Unsupported config option for notifications: 'endpoints'
Here is my docker compose file
registry:
restart: always
image: registry:2
ports:
- 5000:5000
notifications:
endpoints:
- name: alistener
url: https://requestb.in/13yg1rj1
timeout: 500ms
threshold: 5
backoff: 1s
Upvotes: 0
Views: 1375
Reputation: 782
The approach I was taking was wrong. Notifications will not go in docker-compose file but docker config file See sample config file https://github.com/docker/distribution/blob/master/cmd/registry/config-example.yml Documentation: https://docs.docker.com/registry/configuration/#example-development-configuration
Upvotes: 4