fix and update

This commit is contained in:
lendry
2026-06-30 15:36:07 +03:00
parent 879875508f
commit 69063c8fba
5 changed files with 97 additions and 155 deletions

View File

@@ -233,22 +233,7 @@ services:
timeout: 5s
retries: 10
# tauri-apk-builder:
# pull_policy: build
# build:
# context: .
# dockerfile: tauri_app/Dockerfile.apk
# args:
# NPM_REGISTRY: ${NPM_REGISTRY:-https://registry.npmjs.org}
# container_name: lendry-id-tauri-apk-builder
# restart: "no"
# environment:
# VITE_API_URL: ${PUBLIC_API_URL:-http://localhost:3002/idp-api}
# VITE_FRONTEND_URL: ${PUBLIC_FRONTEND_URL:-http://localhost:3002}
# PUBLIC_API_URL: ${PUBLIC_API_URL:-http://localhost:3002/idp-api}
# PUBLIC_FRONTEND_URL: ${PUBLIC_FRONTEND_URL:-http://localhost:3002}
# volumes:
# - ./apps/frontend/public/downloads:/out
# tauri-apk-builder удалён — собирайте APK отдельно при необходимости (tauri_app/Dockerfile.apk)
docs:
pull_policy: build
@@ -298,25 +283,15 @@ services:
media-ws:
condition: service_started
healthcheck:
test: ["CMD", "nginx", "-t"]
interval: 30s
test:
[
"CMD-SHELL",
"wget -qO- --timeout=3 http://lendry-id-api-gateway:3000/health 2>/dev/null | grep -q '\"status\"' || exit 1",
]
interval: 15s
timeout: 5s
retries: 3
# После recreate api-gateway nginx держит stale DNS upstream → 502. Watcher
# делает nginx -s reload когда gateway снова поднялся (~55 с на Nest bootstrap).
nginx-gateway-sync:
profiles: ["proxy"]
image: docker:27-cli
container_name: lendry-id-nginx-gateway-sync
restart: unless-stopped
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./infra/nginx-gateway-sync/entrypoint.sh:/entrypoint.sh:ro
depends_on:
nginx:
condition: service_started
entrypoint: ["/bin/sh", "/entrypoint.sh"]
retries: 5
start_period: 30s
volumes:
postgres_data: