brendmanager/deploy/compose.yml
Peppa 8d43814996
Some checks failed
peppa/install install: failure за 0с
ci / checks (pull_request) Failing after 3s
deploy / deploy (pull_request) Failing after 14s
BRM-10: сервис Knowledge Base, согласования A/B/C, аудит, деплой-конфиг
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 14:02:05 +05:00

40 lines
1.3 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}"
DATABASE_URL: "${DATABASE_URL:-postgres://brand:brand@db:5432/brand}"
API_TOKEN: "${API_TOKEN}"
depends_on:
- db
networks:
- traefik_default
- 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}
db:
image: postgres:17-alpine
restart: unless-stopped
environment:
POSTGRES_USER: brand
POSTGRES_PASSWORD: brand
POSTGRES_DB: brand
volumes:
- dbdata:/var/lib/postgresql/data
networks:
- default
volumes:
dbdata:
networks:
traefik_default:
external: true