Merge pull request 'Develop' (#5) from develop into main
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
Reviewed-on: #5
This commit was merged in pull request #5.
This commit is contained in:
+16
-12
@@ -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:3001/"]
|
||||
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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user