еуые_3
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

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