debug: inspect Traefik config directory and file provider settings
All checks were successful
Deploy / deploy (push) Successful in 4m17s
All checks were successful
Deploy / deploy (push) Successful in 4m17s
This commit is contained in:
10
.github/workflows/deploy.yml
vendored
10
.github/workflows/deploy.yml
vendored
@@ -48,12 +48,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Diagnostics
|
- name: Diagnostics
|
||||||
run: |
|
run: |
|
||||||
echo "=== Traefik config file ==="
|
echo "=== Traefik config directory ==="
|
||||||
cat /etc/easypanel/traefik/config/api-ubigeo.yaml 2>/dev/null || echo "FILE NOT FOUND"
|
docker run --rm -v /etc/easypanel/traefik:/traefik-host alpine sh -c "ls /traefik-host/config/ && echo '---' && cat /traefik-host/config/api-ubigeo.yaml 2>/dev/null || echo 'api-ubigeo.yaml NOT FOUND'"
|
||||||
|
echo "=== Traefik main config (file provider section) ==="
|
||||||
|
docker run --rm -v /etc/easypanel/traefik:/traefik-host alpine grep -A 5 "file\|directory\|watch" /traefik-host/traefik.yaml 2>/dev/null || docker run --rm -v /etc/easypanel/traefik:/traefik-host alpine sh -c "ls /traefik-host/ && cat /traefik-host/traefik.yaml 2>/dev/null | head -50"
|
||||||
echo "=== Container networks ==="
|
echo "=== Container networks ==="
|
||||||
docker inspect ubigeo-api --format '{{json .NetworkSettings.Networks}}' 2>/dev/null | python3 -m json.tool
|
docker inspect ubigeo-api --format '{{range $k,$v := .NetworkSettings.Networks}}{{$k}} {{end}}' 2>/dev/null || echo "container not found"
|
||||||
echo "=== Container status ==="
|
|
||||||
docker ps --filter name=ubigeo-api --format "{{.Names}} {{.Status}}"
|
|
||||||
|
|
||||||
- name: Health check
|
- name: Health check
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user