lots of stuff
This commit is contained in:
parent
dac4a98f79
commit
3d3d65575b
11 changed files with 296 additions and 17 deletions
|
|
@ -1,10 +1,35 @@
|
|||
# 02. VPS Core Services Setup
|
||||
# 02 VPS Core Services Setup
|
||||
|
||||
Now that Vipy is ready, we need to deploy some basic services which are foundational for the apps we're actually interested in.
|
||||
|
||||
This assumes you've completed the markdown `01`.
|
||||
|
||||
## 02.01 Deploy Caddy
|
||||
## General tools
|
||||
|
||||
This repo contains some rather general tools that you may or may not need depending on what services you want to deploy and what device you're working on. This tools can be installed with the `900` group of playbooks sitting at `ansible/infra`.
|
||||
|
||||
By default, these playbooks are configured for `hosts: all`. Be mindful if you want to limit, you can use the `--limit groupname` flag when running the playbook.
|
||||
|
||||
Below you have notes on adding each specific tool to a device.
|
||||
|
||||
### rsync
|
||||
|
||||
Simply run the playbook:
|
||||
|
||||
```
|
||||
ansible-playbook -i inventory.ini infra/900_install_rsync.yml
|
||||
```
|
||||
|
||||
### docker and compose
|
||||
|
||||
Simply run the playbook:
|
||||
|
||||
```
|
||||
ansible-playbook -i inventory.ini infra/910_docker_playbook.yml
|
||||
```
|
||||
|
||||
|
||||
## Deploy Caddy
|
||||
|
||||
* Use Ansible to run the caddy playbook:
|
||||
|
||||
|
|
@ -15,4 +40,58 @@ This assumes you've completed the markdown `01`.
|
|||
|
||||
* Starting config will be empty. Modifying the caddy config file to add endpoints as we add services is covered by the instructions of each service.
|
||||
|
||||
## 02.02 Deploy Uptime Kuma
|
||||
|
||||
## Uptime Kuma
|
||||
|
||||
Uptime Kuma gets used to monitor the availability of services, keep track of their uptime and notify issues.
|
||||
|
||||
### Deploy
|
||||
|
||||
* Decide what subdomain you want to serve Uptime Kuma on and add it to `services/uptime_kuma/uptime_kuma_vars.yml` on the `uptime_kuma_subdomain`.
|
||||
* Make sure docker is available on the host.
|
||||
* Run the deployment playbook: `ansible-playbook -i inventory.ini services/uptime_kuma/deploy_uptime_kuma_playbook.yml`.
|
||||
|
||||
### Set up backups to Lapy
|
||||
|
||||
* Make sure rsync is available on the host and on Lapy.
|
||||
* Run the backup playbook: `ansible-playbook -i inventory.ini services/uptime_kuma/setup_backup_uptime_kuma_to_lapy.yml`.
|
||||
* A first backup process gets executed and then a cronjob is set up to refresh backups periodically.
|
||||
|
||||
### Configure
|
||||
|
||||
* Uptime Kuma will be available for you to create a user on first start. Do that and store the creds safe.
|
||||
* From that point on, you can configure through the Web UI.
|
||||
|
||||
### Restoring to a previous state
|
||||
|
||||
* Stop Uptime Kuma.
|
||||
* Overwrite the data folder with one of the backups.
|
||||
* Start it up again.
|
||||
|
||||
|
||||
## Vaultwarden
|
||||
|
||||
Vaultwarden is a credentials manager.
|
||||
|
||||
### Deploy
|
||||
|
||||
* Decide what subdomain you want to serve Vaultwarden on and add it to `services/vaultwarden/vaultwarden_vars.yml` on the `vaultwarden_subdomain`.
|
||||
* Make sure docker is available on the host.
|
||||
* Run the deployment playbook: `ansible-playbook -i inventory.ini services/vaultwarden/deploy_vaultwarden_playbook.yml`.
|
||||
|
||||
### Set up backups to Lapy
|
||||
|
||||
* Make sure rsync is available on the host and on Lapy.
|
||||
* Run the backup playbook: `ansible-playbook -i inventory.ini services/vaultwarden/setup_backup_vaultwarden_to_lapy.yml`.
|
||||
* A first backup process gets executed and then a cronjob is set up to refresh backups periodically.
|
||||
|
||||
### Configure
|
||||
|
||||
* Vaultwarden will be available for you to create a user on first start. Do that and store the creds safe.
|
||||
* From that point on, you can configure through the Web UI.
|
||||
|
||||
### Restoring to a previous state
|
||||
|
||||
* Stop Vaultwarden.
|
||||
* Overwrite the data folder with one of the backups.
|
||||
* Start it up again.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue