feat: Traefik에 webhook 프록시 추가 및 cron 폴링 제거
- Traefik file provider로 호스트 webhook(9000) 프록시 - /deploy 경로로 Gitea webhook 수신 - extra_hosts로 Linux host.docker.internal 지원 - 불필요한 Docker webhook 서비스 제거 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
http:
|
||||||
|
routers:
|
||||||
|
webhook:
|
||||||
|
rule: "PathPrefix(`/deploy`)"
|
||||||
|
entryPoints:
|
||||||
|
- web
|
||||||
|
service: webhook
|
||||||
|
|
||||||
|
services:
|
||||||
|
webhook:
|
||||||
|
loadBalancer:
|
||||||
|
servers:
|
||||||
|
- url: "http://host.docker.internal:9000"
|
||||||
@@ -10,6 +10,9 @@ entryPoints:
|
|||||||
providers:
|
providers:
|
||||||
docker:
|
docker:
|
||||||
exposedByDefault: false
|
exposedByDefault: false
|
||||||
|
file:
|
||||||
|
filename: /etc/traefik/dynamic.yml
|
||||||
|
watch: true
|
||||||
|
|
||||||
# 도메인 준비되면 주석 해제
|
# 도메인 준비되면 주석 해제
|
||||||
# certificatesResolvers:
|
# certificatesResolvers:
|
||||||
|
|||||||
@@ -36,9 +36,12 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
|
extra_hosts:
|
||||||
|
- "host.docker.internal:host-gateway"
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
- ./deploy/traefik/traefik.yml:/etc/traefik/traefik.yml:ro
|
- ./deploy/traefik/traefik.yml:/etc/traefik/traefik.yml:ro
|
||||||
|
- ./deploy/traefik/dynamic.yml:/etc/traefik/dynamic.yml:ro
|
||||||
- traefik_letsencrypt:/letsencrypt
|
- traefik_letsencrypt:/letsencrypt
|
||||||
depends_on:
|
depends_on:
|
||||||
- web
|
- web
|
||||||
|
|||||||
Reference in New Issue
Block a user