Files
tgit/docker-compose.yml
T
ElebobaandClaude Opus 5.5 526eb56c82 feat(bot): Telegram через прокси (TELEGRAM_PROXY_URL); лимит памяти бота 384m
С сервера Vobot api.telegram.org недоступен (ни IPv4, ни IPv6) — как и meditron, ходим
через прокси; aiohttp-socks для http/socks. Бот в простое ~190 МБ — 256m мало.

Refs #12

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 00:21:36 +03:00

44 lines
1.1 KiB
YAML

# Local / any-host stack: `make up`. Server overrides — infra/deploy/docker-compose.server.yml (#12).
services:
bot:
build: .
env_file: .env
environment:
DATABASE_URL: postgresql+asyncpg://tgit:${POSTGRES_PASSWORD:-tgit}@postgres:5432/tgit
GIT_CLONE_DIR: /data/uploads
volumes:
- uploads:/data
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
mem_limit: 384m # ~190 MB idle; git clone/push and aiogram spikes need headroom
labels:
tgit.managed: "true"
logging:
options: { max-size: "10m", max-file: "3" }
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: tgit
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-tgit}
POSTGRES_DB: tgit
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U tgit -d tgit"]
interval: 3s
timeout: 3s
retries: 20
restart: unless-stopped
mem_limit: 256m
labels:
tgit.managed: "true"
logging:
options: { max-size: "10m", max-file: "3" }
volumes:
pgdata:
uploads: