{% extends "base.html" %} {% from "partials/components.html" import collapse, action_btn %} {% block title %}{{ name }} - Compose Farm{% endblock %} {% block content %}

{{ name }}

{% if current_host %} Running on {{ current_host }} {% else %} Not running {% endif %} {{ hosts | join(', ') }}
{{ action_btn("Up", "/api/service/" ~ name ~ "/up", "primary", "Start service (docker compose up -d)") }} {{ action_btn("Down", "/api/service/" ~ name ~ "/down", "outline", "Stop service (docker compose down)") }} {{ action_btn("Restart", "/api/service/" ~ name ~ "/restart", "secondary", "Restart service (down + up)") }} {{ action_btn("Update", "/api/service/" ~ name ~ "/update", "accent", "Update to latest (pull + build + down + up)") }}
{{ action_btn("Pull", "/api/service/" ~ name ~ "/pull", "outline", "Pull latest images (no restart)") }} {{ action_btn("Logs", "/api/service/" ~ name ~ "/logs", "outline", "Show recent logs") }}
{% call collapse("Compose File", badge=compose_path) %}
{% endcall %} {% call collapse(".env File", badge=env_path) %}
{% endcall %} {% include "partials/terminal.html" %} {% if current_host %} {% call collapse("Container Shell", id="exec-collapse", checked=True) %}
Loading containers...
{% endcall %} {% endif %}
{% endblock %}