2021-10-11 20:18:01 +00:00
|
|
|
# Ansible Playbook to install uptime kuma using docker
|
|
|
|
|
|
|
|
This playbook comes with three roles
|
|
|
|
|
|
|
|
1. docker (to install docker)
|
|
|
|
2. nginx (to install nginx using docker with ssl)
|
|
|
|
3. uptime kuma (to install uptime kuma using docker)
|
|
|
|
|
|
|
|
To see more info see docker-compose, tasks and config files
|
2021-10-11 20:21:17 +00:00
|
|
|
I will try to make this readme better
|
|
|
|
|
2021-10-22 17:22:13 +00:00
|
|
|
## To run it
|
|
|
|
1. run `ansible-galaxy install -r ansible-requirements.yml` to get requirements
|
|
|
|
2. prepare inventory hosts
|
2021-10-22 17:38:19 +00:00
|
|
|
3. put your certificates in files section in nginx role with this structure below:
|
|
|
|
```
|
|
|
|
ansible -> roles -> nginx -> ssl -> <uptime kuma domain>.fullchain.pem
|
|
|
|
ansible -> roles -> nginx -> ssl -> <uptime kuma domain>.privkey.pem
|
|
|
|
```
|
|
|
|
4. to run playbook
|
2021-10-22 17:22:13 +00:00
|
|
|
```bash
|
|
|
|
ansible-playbook ./playbook.yml -i <your inventory path> --extra-vars "kuma_domain=<uptime kuma domain>"
|
|
|
|
```
|
|
|
|
you can use other ansible playbook options too
|
2021-10-22 17:38:19 +00:00
|
|
|
|
|
|
|
> Note: Replace `<uptime kuma domain>` with your desired domain for uptime kuma
|