Deploys Honcho (plastic-labs/honcho) as a rootful Podman + Quadlet service on the lincoln VM (10.1.71.132). Three containers on a user-defined network: - honcho-postgres pgvector/pgvector:pg16 - honcho-api FastAPI on :8000 - honcho-deriver background worker for theory-of-mind derivations LLM provider: Anthropic Claude (claude-sonnet-4-5). Switching providers is two env-var changes — see README. Traefik route hall-of-presidents.local.mk-labs.cloud -> lincoln:8000 added under boilerplates/traefik/dynamic/. JARVIS itself talks to Honcho directly at lincoln:8000 (east-west); the Traefik alias exists only for browser access to the Swagger /docs UI. Requires three new vault entries before first run: - vault_honcho_database_password - vault_honcho_jwt_secret - vault_honcho_anthropic_api_key
35 lines
1.2 KiB
YAML
35 lines
1.2 KiB
YAML
---
|
|
# ============================================================================
|
|
# Honcho API container (Quadlet)
|
|
# ----------------------------------------------------------------------------
|
|
# Runs `fastapi run src/main.py` via the image's default CMD. The
|
|
# entrypoint.sh in the image runs the DB migration first; safe to do on
|
|
# every restart (idempotent).
|
|
# ============================================================================
|
|
|
|
- name: Deploy Honcho API Quadlet
|
|
ansible.builtin.template:
|
|
src: honcho-api.container.j2
|
|
dest: "{{ honcho_quadlet_dir }}/{{ honcho_container_name }}.container"
|
|
owner: root
|
|
group: root
|
|
mode: "0644"
|
|
register: honcho_api_quadlet
|
|
|
|
- name: Reload systemd to pick up Quadlet changes
|
|
ansible.builtin.systemd:
|
|
daemon_reload: true
|
|
when: honcho_api_quadlet.changed
|
|
|
|
- name: Ensure Honcho API container is started and enabled
|
|
ansible.builtin.systemd:
|
|
name: "{{ honcho_container_name }}.service"
|
|
state: started
|
|
enabled: true
|
|
|
|
- name: Restart Honcho API on Quadlet change
|
|
ansible.builtin.systemd:
|
|
name: "{{ honcho_container_name }}.service"
|
|
state: restarted
|
|
when: honcho_api_quadlet.changed
|