Docker Compose: - docker-compose.yml: Base configuration for development - Frontend (nginx) on port 3000 - Backend (Go) on ports 8080 (HTTP) and 9849 (gRPC) - Volume mounts for /proc, /sys (system metrics) - Named volume for data persistence - Health check for backend - docker-compose.prod.yml: Production overrides - Resource limits (CPU/memory) - Log rotation configuration Installation Script (scripts/install.sh): - One-line installation support via curl/wget - Cross-platform: Linux (amd64, arm64, arm) - Creates system user and directories - Downloads and installs binary from GitHub releases - Generates YAML configuration file - Creates and enables systemd service - Security hardening with systemd sandboxing - Resource limits for production use 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
43 lines
837 B
YAML
43 lines
837 B
YAML
# Tyto Production Override
|
|
#
|
|
# Usage: docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d
|
|
#
|
|
# This file adds production-specific settings:
|
|
# - Resource limits
|
|
# - Logging configuration
|
|
# - Security settings
|
|
|
|
services:
|
|
frontend:
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '0.5'
|
|
memory: 256M
|
|
reservations:
|
|
cpus: '0.1'
|
|
memory: 64M
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
|
|
backend:
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '1'
|
|
memory: 512M
|
|
reservations:
|
|
cpus: '0.2'
|
|
memory: 128M
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "50m"
|
|
max-file: "5"
|
|
environment:
|
|
- TYTO_MODE=server
|
|
- TYTO_LOG_LEVEL=warn
|