change structure
add alerts
This commit is contained in:
parent
306abe6c32
commit
106116528d
14 changed files with 432 additions and 9 deletions
11
ansible/roles/uptime_kuma/docker-compose.yml.j2
Normal file
11
ansible/roles/uptime_kuma/docker-compose.yml.j2
Normal file
|
@ -0,0 +1,11 @@
|
|||
version: '3.3'
|
||||
|
||||
services:
|
||||
uptime-kuma:
|
||||
image: louislam/uptime-kuma:1
|
||||
ports:
|
||||
- 3001:3001
|
||||
container_name: uptime-kuma
|
||||
restart: always
|
||||
volumes:
|
||||
- {{ backup_mount_point }}/uptime-kuma/data:/app/data
|
10
ansible/roles/uptime_kuma/tasks/main.yml
Normal file
10
ansible/roles/uptime_kuma/tasks/main.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
- name: Copy Docker compose file
|
||||
template:
|
||||
src: "{{ role_path }}/docker-compose.yml.j2"
|
||||
dest: /srv/uptime-kuma/docker-compose.yml
|
||||
|
||||
- name: Deploy Docker compose
|
||||
docker_compose:
|
||||
project_src: /srv/uptime-kuma
|
||||
pull: true
|
||||
remove_orphans: true
|
Reference in a new issue