-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (29 loc) · 828 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
32 lines (29 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version: "3.1"
services:
webhook:
build:
context: .
dockerfile: Dockerfile
container_name: webhook
restart: always
healthcheck:
test: "curl -sS --fail 127.0.0.1:9000 || exit 1"
interval: 120s
timeout: 5s
retries: 5
volumes:
- ./hooks/:/etc/webhook
- ./scripts/:/scripts/
- /var/run/docker.sock:/var/run/docker.sock
networks:
- traefik
labels:
- traefik.enable=true
- traefik.docker.network=traefik
- traefik.http.services.webhook.loadbalancer.server.port=9000
- traefik.http.routers.webhook.rule=PathPrefix(`/webhook`)
- traefik.http.routers.webhook.middlewares=webhook-stripprefix
- traefik.http.middlewares.webhook-stripprefix.stripprefix.prefixes=/webhook
networks:
traefik:
external: true