docs: teardown commands

This commit is contained in:
gov committed 2026-08-04 16:41:47 -04:00
1 parent 06e085fb6d
commit a86a9e6681
1 file changed
+13
+13
View File
@@ -88,6 +88,19 @@ Create an account:
pdsadmin account create pdsadmin account create
``` ```
## Teardown
Run on the server to remove everything, use with caution:
```bash
sudo docker compose -f /pds/compose.yaml down
sudo rm -rf /pds
sudo systemctl stop pds 2>/dev/null
sudo systemctl disable pds 2>/dev/null
sudo rm -f /etc/systemd/system/pds.service /usr/local/bin/pdsadmin
sudo systemctl daemon-reload
```
## Notes ## Notes
- `pds.env` is Ansible-managed. Secrets (JWT, admin password, PLC rotation key) are generated by the installer on first run, then read and preserved by Ansible on subsequent runs. To change config like S3 or SMTP, update `vars/main.yml` and re-run the playbook. - `pds.env` is Ansible-managed. Secrets (JWT, admin password, PLC rotation key) are generated by the installer on first run, then read and preserved by Ansible on subsequent runs. To change config like S3 or SMTP, update `vars/main.yml` and re-run the playbook.