almir/docker-webhook

Docker Compose?

Closed this issue · 2 comments

How can I format this to make it work in a docker-compose.yml?

almir commented

I'm not sure what is it you need exactly, but maybe this could help: #2 (comment)

Yeah, that helps. It should look something like this I think:

version: '3'
services:
  webhook:
    container_name: webhook
    image: kachkaev/webhook
    volumes:
      - '/path/to/hooks/on/host:/etc/webhook'
      - '/path/to/scripts/on/host:/opt/scripts'
      - '/path/to/app/on/host:/opt/app'
      - '/var/run/docker.sock:/var/run/docker.sock'
    ports:
      - '9000:9000'
    command: 
      - "-verbose"
      - "-hooks=/etc/webhook/hooks.json"
      - "-hotreload"

Thanks!