Files
infrastructure/servers/inventory.yml
T
maximilion96 f5cbb063a1 Add Dify stack to ru-docker-infra
7 сервисов (api, worker, web, plugin-daemon, sandbox, ssrf-proxy, weaviate)
на общих postgres (базы dify/dify_plugin) и redis (db 2/3). Vector store —
weaviate. Внешний вход через traefik path-роутингом на dify.mxti.ru.
Добавлены: ssrf_proxy/squid.conf, postgres init для баз, DNS-запись,
сервис dify в inventory, deploy-ключ в ssh/.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 01:14:17 +03:00

58 lines
2.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# inventory.yml — источник правды о парке серверов.
# Добавить сервер = добавить запись сюда + папку servers/<name>/ с docker-compose.yml.
defaults: # общие настройки, чтобы не повторять в каждом сервере
ssh_user: agent # отдельный non-root пользователь для бота
branch: main # ветка, которую тянут серверы
compose_path: servers/{name}/docker-compose.yml # {name} подставляется из поля name
servers:
- name: ru-docker-infra # основной сервер в Яндекс.Облаке
host: 111.88.253.112
role: core # основной узел: все ключевые сервисы
env: prod
location: yandex-cloud
tags: [traefik, n8n, gitea, postgres, redis, portainer, xray, mtg, dify]
services:
- traefik
- postgres
- redis
- n8n
- tunnel # autossh-туннель на nl-reverse-proxy
- xray # исходящий прокси для n8n
- gitea
- portainer
- mtg # Telegram MTProto-прокси
- dify # LLM-app платформа (api/worker/web/plugin-daemon/sandbox/ssrf-proxy/weaviate)
managed: true
- name: ru-vpn # входная нода VPN
host: 62.84.114.137
role: vpn-entry
env: prod
location: yandex-cloud
tags: [3x-ui, vpn]
services:
- 3x-ui
managed: true
- name: nl-reverse-proxy # реверс-прокси для n8n (принимает SSH-туннель)
host: 94.247.214.20
role: reverse-proxy
env: prod
location: netherlands
tags: [n8n, ssh-tunnel]
services:
- nginx # tbd: уточнить, чем именно проксируется
managed: true
- name: nl-vpn # выходная нода VPN
host: 94.247.214.112
role: vpn-exit
env: prod
location: netherlands
tags: [3x-ui, vpn]
services:
- 3x-ui
managed: true