From 00ed4f923bb9fc97f99513105f60c1bd7bd8db86 Mon Sep 17 00:00:00 2001 From: Ivan Rezchikov Date: Wed, 22 Jul 2026 13:28:52 +0300 Subject: [PATCH] feat: network updates --- Dockerfile | 3 --- docker-compose.yml | 2 -- entrypoint.sh | 19 ------------------- 3 files changed, 24 deletions(-) delete mode 100644 entrypoint.sh diff --git a/Dockerfile b/Dockerfile index a25731d..bf28f84 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,11 +16,8 @@ COPY --from=builder /app/.next ./.next COPY --from=builder /app/public ./public COPY --from=builder /app/prisma ./prisma COPY --from=builder /app/next.config.ts ./next.config.ts -COPY entrypoint.sh /app/entrypoint.sh -RUN chmod +x /app/entrypoint.sh RUN npm prune --omit=dev EXPOSE 80 -ENTRYPOINT ["/app/entrypoint.sh"] CMD ["npm", "start", "--", "-p", "3000", "-H", "0.0.0.0"] HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ CMD wget -q --spider http://localhost:3000/ || exit 1 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 52195de..02d07a8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,8 +2,6 @@ services: eu: image: 172.17.0.1:5000/eu:latest restart: unless-stopped - extra_hosts: - - "assets.dusiburg.ru:172.18.0.4" environment: PUBLIC_URL: ${PUBLIC_URL} DATABASE_URL: ${DATABASE_URL} diff --git a/entrypoint.sh b/entrypoint.sh deleted file mode 100644 index e72e6d7..0000000 --- a/entrypoint.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh -set -e - -NGINX_PROXY_NAME="${NGINX_PROXY_CONTAINER_NAME:-nginx-proxy}" - -TARGET_DOMAIN=$(echo "$MINIO_PUBLIC_URL" | sed -E 's#^https?://##; s#/.*##; s#:.*##') - -if [ -n "$TARGET_DOMAIN" ]; then - IP=$(getent hosts "$NGINX_PROXY_NAME" | awk '{ print $1 }' | head -n1) - - if [ -n "$IP" ]; then - echo "$IP $TARGET_DOMAIN" >> /etc/hosts - echo "[entrypoint] resolved $NGINX_PROXY_NAME -> $IP for $TARGET_DOMAIN" - else - echo "[entrypoint] WARNING: could not resolve $NGINX_PROXY_NAME, using public DNS as fallback" - fi -fi - -exec "$@" \ No newline at end of file