--- # Duplicated from caddy/vars/default.yml on purpose, so keep them in sync. # podman_user comes from the connection user, so the play needs gather_facts. podman_user: "{{ ansible_facts['user_id'] }}" podman_data_dir: "{{ ansible_facts['user_dir'] }}/podman-data" quadlet_dir: "{{ ansible_facts['user_dir'] }}/.config/containers/systemd" host: recipes.tanshu.com container_name: tandoor unit_name: "{{ container_name }}.service" # Fully qualified because rootless Podman would otherwise prompt for a registry, and a unit has no TTY. image: docker.io/vabene1111/recipes:latest # caddy/roles/register pins the Podman network to _net, so the Quadlet file is tandoor.network. network_name: "{{ container_name }}" host_directory: "{{ podman_data_dir }}/{{ container_name }}" # The port Caddy proxies to inside the container, where the image's own nginx listens. container_port: 80 postgres_container: postgres postgres_unit: "{{ postgres_container }}.service" caddy_name: caddy caddyfile_path: "{{ podman_data_dir }}/{{ caddy_name }}/conf/Caddyfile" snippet_block: | {{ host }} { reverse_proxy {{ container_name }}:{{ container_port }} }