Ops: bindy stosu staging 13xxx wylacznie na 127.0.0.1 (porty LAN-owe przejmuje kontener TLS TisachiSSL bez kolizji binderow; smoke http deployu niewzruszone)
This commit is contained in:
@@ -5,6 +5,11 @@
|
||||
#
|
||||
# Same-origin: nginx w app/admin proxyje /api i /health do api:9002 (siec projektu),
|
||||
# wiec config.js ma pusty apiUrl i zadne CORS nie jest potrzebne.
|
||||
#
|
||||
# Porty hosta wiaza WYLACZNIE 127.0.0.1: na LAN-owym IP te same porty 13xxx wystawia
|
||||
# kontener TLS (TisachiSSL, ops/deploy/tls/) — ten sam adres:port po http i https.
|
||||
# Bez loopback-boundow oba bindery kolidowalyby na 0.0.0.0. Smoke http deployu
|
||||
# trafia w 127.0.0.1 (bez TLS); probe https — w LAN-owe IP przez kontener TLS.
|
||||
# Wolumeny danych sa EXTERNAL — przetrwaja usuniecie stosu; tworzy je operator
|
||||
# (deploy.py celowo zatrzymuje sie, gdy brakuje ktoregokolwiek).
|
||||
name: fitos-${DEPLOY_ENV:?set DEPLOY_ENV in .env}
|
||||
@@ -14,7 +19,7 @@ services:
|
||||
build: ../../api
|
||||
container_name: fitos-api-${DEPLOY_ENV}
|
||||
ports:
|
||||
- "${API_HOST_PORT:?set API_HOST_PORT in .env}:9002"
|
||||
- "127.0.0.1:${API_HOST_PORT:?set API_HOST_PORT in .env}:9002"
|
||||
environment:
|
||||
DATABASE_URL: postgresql://fitos:fitos@db:5432/fitos
|
||||
PORT: 9002
|
||||
@@ -72,7 +77,7 @@ services:
|
||||
GIT_SHA: ${GIT_SHA:-}
|
||||
container_name: fitos-app-${DEPLOY_ENV}
|
||||
ports:
|
||||
- "${APP_HOST_PORT:?set APP_HOST_PORT in .env}:9001"
|
||||
- "127.0.0.1:${APP_HOST_PORT:?set APP_HOST_PORT in .env}:9001"
|
||||
environment:
|
||||
API_UPSTREAM: api:9002
|
||||
# nginx startuje po zdrowym api — wlasciwe DNS i kolejnosc przy recreacji
|
||||
@@ -89,7 +94,7 @@ services:
|
||||
GIT_SHA: ${GIT_SHA:-}
|
||||
container_name: fitos-admin-${DEPLOY_ENV}
|
||||
ports:
|
||||
- "${ADMIN_HOST_PORT:?set ADMIN_HOST_PORT in .env}:9000"
|
||||
- "127.0.0.1:${ADMIN_HOST_PORT:?set ADMIN_HOST_PORT in .env}:9000"
|
||||
environment:
|
||||
API_UPSTREAM: api:9002
|
||||
depends_on:
|
||||
@@ -107,7 +112,7 @@ services:
|
||||
ADMIN_PORT: ${ADMIN_HOST_PORT:?set ADMIN_HOST_PORT in .env}
|
||||
container_name: fitos-web-${DEPLOY_ENV}
|
||||
ports:
|
||||
- "${WEB_HOST_PORT:?set WEB_HOST_PORT in .env}:9003"
|
||||
- "127.0.0.1:${WEB_HOST_PORT:?set WEB_HOST_PORT in .env}:9003"
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user