Merge branch 'main' of https://gitea.allowlgroup.ru/na-granicelife.ru/front
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-10-16 20:09:29 +10:00
2 changed files with 39 additions and 19 deletions
+16 -12
View File
@@ -1,27 +1,31 @@
version: '3.8'
services: services:
web-dev: web-dev:
image: gitea.allowlgroup.ru/na-granicelife.ru/front:latest image: gitea.allowlgroup.ru/na-granicelife.ru/front:dev-latest
container_name: na-granicelife-dev container_name: na-granicelife-dev
restart: unless-stopped restart: unless-stopped
init: true # ВАЖНО: Никаких ports! Только внутренняя сеть.
# Важно: не маппим порт наружу, Nginx сам ходит внутрь сети networks:
expose: - na-granicelife-net
- "3001"
volumes:
- ./assets/mp4:/app/.output/public/assets/mp4:ro
environment: environment:
- NUXT_PUBLIC_SITE_URL=https://dev.na-granicelife.ru - NUXT_PUBLIC_SITE_URL=https://dev.na-granicelife.ru
logging: logging:
driver: json-file driver: json-file
options: options:
max-size: "10m" max-size: "10m"
max-file: "5" max-file: "5"
# Исправленный healthcheck: даем 2 минуты на старт Nuxt
healthcheck: healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:3001/"] test: ["CMD", "wget", "--spider", "-q", "http://localhost:3000/"]
interval: 30s interval: 30s
timeout: 5s timeout: 10s
retries: 3 retries: 3
start_period: 30s start_period: 120s
networks: networks:
default: na-granicelife-net:
name: na-granicelife-net external: true
+23 -7
View File
@@ -1,15 +1,31 @@
version: '3.8'
services: services:
web-prod: web-prod:
image: gitea.allowlgroup.ru/na-granicelife.ru/front:prod-latest image: gitea.allowlgroup.ru/na-granicelife.ru/front:prod-latest
container_name: na-granicelife-prod container_name: na-granicelife-prod
restart: unless-stopped restart: unless-stopped
init: true # ВАЖНО: Никаких портов наружу!
expose: networks:
- "3002" - na-granicelife-net
volumes:
- ./assets/mp4:/app/.output/public/assets/mp4:ro
environment: environment:
- NUXT_PUBLIC_SITE_URL=https://na-granicelife.ru - NUXT_PUBLIC_SITE_URL=https://na-granicelife.ru
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
# Исправленный healthcheck
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 120s
networks: networks:
default: na-granicelife-net:
name: na-granicelife-net external: true