brendmanager/deploy/compose.yml
Peppa 8f0e79e5d0
All checks were successful
peppa/lint lint: success за 1с
peppa/test test: success за 1с
ci / checks (pull_request) Successful in 3s
deploy / deploy (pull_request) Successful in 21s
BRM-32: статус автовыкладки на главной версии для проверки
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 12:12:04 +05:00

28 lines
1.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.

# Стенд проекта Пеппы (PEP-57). Деплой: docker compose -p <slug>-<env> -f deploy/compose.yml up -d
# с переменными IMAGE (образ peppa/<slug>:<sha>), HOST, ROUTER, APP_PORT — их задаёт
# .gitea/peppa-deploy.sh. Сервис и порт — .peppa/project.json → deploy.service / deploy.port.
# Секреты приложения — в secrets Actions репозитория, сюда только через environment.
services:
web:
image: ${IMAGE}
restart: unless-stopped
environment:
PORT: "${APP_PORT:-3000}"
# Ключ, которым скрипт выкладки сообщает странице итог обновления (BRM-32).
DEPLOY_STATUS_SECRET: "${PEPPA_CI_SECRET:-}"
volumes:
- data:/app/data
networks:
- traefik_default
labels:
- traefik.enable=true
- traefik.docker.network=traefik_default
- traefik.http.routers.${ROUTER}.rule=Host(`${HOST}`)
- traefik.http.routers.${ROUTER}.entrypoints=web
- traefik.http.services.${ROUTER}.loadbalancer.server.port=${APP_PORT:-3000}
volumes:
data:
networks:
traefik_default:
external: true