33 lines
970 B
YAML
33 lines
970 B
YAML
---
|
|
registry: registry.tanshu.com
|
|
username: ta-registry
|
|
password: ff28a01f00c0f39315d94cd9dcb1e554968dba25676a8ea5f2be34e96a9a099f
|
|
|
|
title: mozimo
|
|
tag: latest
|
|
|
|
host_directory: "/var/lib/{{ title }}-staging"
|
|
|
|
www_host: "staging.mozimo.in"
|
|
www_port: 3000
|
|
cms_host: "cms.mozimo.in"
|
|
cms_port: 8090
|
|
|
|
docker_network: "{{ title }}_net"
|
|
|
|
# image tag: deploy.sh passes -e image_tag=<commit>; "tag" is the fallback
|
|
# when running the playbook by hand — rollback = -e image_tag=<older-commit>
|
|
docker_image: "{{ registry }}/{{ title }}:{{ image_tag | default(tag) }}"
|
|
docker_container: "{{ title }}-staging"
|
|
|
|
# hosts Caddy publishes on this box: web (SSR) + pocketbase (cms)
|
|
caddy_hosts:
|
|
- host: "{{ www_host }}"
|
|
upstream: "{{ docker_container }}:{{ www_port }}"
|
|
- host: "{{ cms_host }}"
|
|
upstream: "{{ docker_container }}:{{ cms_port }}"
|
|
pb_root: true # dashboard at / (Caddy redirs / -> /_/)
|
|
|
|
caddy_container: caddy
|
|
caddyfile_path: /var/lib/caddy/conf/Caddyfile
|