# quadlet/proxym.container
# Podman Quadlet — AI Proxy as systemd service
# Install: cp *.container ~/.config/containers/systemd/
# Enable:  systemctl --user daemon-reload && systemctl --user start proxym

[Unit]
Description=AI Proxy — Multi-provider LLM Gateway
After=redis.service
Requires=redis.service

[Container]
Image=localhost/proxym:latest
ContainerName=proxym
PublishPort=4000:4000
EnvironmentFile=%h/.config/proxym/.env
Volume=%h/projects:/app/project:ro
Network=proxym.network

# Health check
HealthCmd=curl -f http://localhost:4000/health || exit 1
HealthInterval=15s
HealthTimeout=5s
HealthRetries=3

# Resource limits
Memory=1G
CPUQuota=200%

[Service]
Restart=always
RestartSec=5
TimeoutStartSec=30

[Install]
WantedBy=default.target
