Rebuild ansible on the project deploy template
- playbook.yml (hosts: monoco) + vars/default.yml, requirements.yml - roles: network (shared docker network), greatbear (registry pull, bind mount /var/lib/greatbear/pb_data, .env upload, health wait), caddy (blockinfile snippet into the shared Caddyfile + docker exec reload) - image honors PB_DATA_DIR and runs as root to match the bind-mount pattern - frontend on www.greatbear.in (+apex) with /api/* and /_* proxied to PocketBase; admin.greatbear.in redirects to the admin UI
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
---
|
||||
registry: registry.tanshu.com
|
||||
username: ta-registry
|
||||
password: ff28a01f00c0f39315d94cd9dcb1e554968dba25676a8ea5f2be34e96a9a099f
|
||||
|
||||
tag: latest
|
||||
|
||||
image_name: "{{ registry }}/tanshu/greatbear:{{ tag }}"
|
||||
|
||||
app_name: greatbear
|
||||
host_directory: "{{ app_name }}"
|
||||
host_data_path: "/var/lib/{{ host_directory }}"
|
||||
container_name: "{{ app_name }}"
|
||||
docker_network: "{{ app_name }}_net"
|
||||
|
||||
# Public hosts for frontend & PocketBase routing
|
||||
host: www.greatbear.in
|
||||
apex_host: greatbear.in
|
||||
admin_host: admin.greatbear.in
|
||||
|
||||
# Caddy configuration
|
||||
caddy_container: caddy
|
||||
caddy_caddyfile_path: /var/lib/caddy/conf/Caddyfile
|
||||
|
||||
# PocketBase Initial Superuser Credentials
|
||||
pb_admin_email: admin@greatbear.in
|
||||
pb_admin_password: GreatBear!Admin2024
|
||||
Reference in New Issue
Block a user