- 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
8 lines
183 B
Bash
8 lines
183 B
Bash
NODE_ENV=production
|
|
PORT=3000
|
|
HOST=0.0.0.0
|
|
PB_DATA_DIR=/app/pb_data
|
|
PB_URL=http://127.0.0.1:8090
|
|
PB_SUPERUSER_EMAIL={{ pb_admin_email }}
|
|
PB_SUPERUSER_PASSWORD={{ pb_admin_password }}
|