template/deploy/compose.yml
peppa-bot d7a94d0261
All checks were successful
ci / checks (push) Successful in 6s
deploy / deploy (push) Successful in 5s
Update Peppa template (e694f4c3)
2026-11-23 12:05:36 +05:00

23 lines
1.1 KiB
YAML
Raw Permalink 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.

# Стенд проекта FORGE (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.
# Секреты приложения сюда не вписывают: PM заводит их в FORGE («⋯ Настройки проекта → Секреты»),
# peppa-deploy.sh сам передаёт их сервису как переменные окружения с тем же именем (PEP-112).
services:
web:
image: ${IMAGE}
restart: unless-stopped
environment:
PORT: "${APP_PORT:-3000}"
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}
networks:
traefik_default:
external: true