The prod overlay drops host ports for api/frontend and attaches frontend to the server's external `web` network (alias lux-fiscal-frontend), where NPM terminates TLS for asist.ystyle.com.ua. migrate/api/worker now share a single lux-fiscal-backend image instead of three identical copies. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
22 lines
758 B
YAML
22 lines
758 B
YAML
# Прод-оверлей: docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d --build
|
|
#
|
|
# TLS и публичный домен держит Nginx Proxy Manager сервера (внешняя сеть `web`).
|
|
# Наружу торчит только frontend — и то лишь в сеть `web`, без портов на хосте;
|
|
# api/postgres/redis доступны исключительно внутри сети compose.
|
|
|
|
services:
|
|
api:
|
|
ports: !reset []
|
|
|
|
frontend:
|
|
ports: !reset []
|
|
networks:
|
|
default:
|
|
web:
|
|
# Имя, по которому NPM проксирует: Forward Hostname = lux-fiscal-frontend, порт 80.
|
|
aliases: [lux-fiscal-frontend]
|
|
|
|
networks:
|
|
web:
|
|
external: true
|