Added upsnap
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
---
|
||||
- name: Create directory for docker-compose
|
||||
ansible.builtin.file:
|
||||
path: /root/docker/
|
||||
state: directory
|
||||
mode: "0755"
|
||||
|
||||
- name: Copy docker-compose file
|
||||
template:
|
||||
src: "docker-compose.yml"
|
||||
dest: /root/docker/docker-compose.yml
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
|
||||
- name: Run docker-compose
|
||||
ansible.builtin.shell:
|
||||
args:
|
||||
cmd: docker compose up -d
|
||||
chdir: /root/docker/
|
||||
@@ -0,0 +1,22 @@
|
||||
version: "3"
|
||||
services:
|
||||
upsnap:
|
||||
container_name: upsnap
|
||||
image: ghcr.io/seriousm4x/upsnap:4
|
||||
network_mode: host
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /data:/app/pb_data
|
||||
environment:
|
||||
- TZ=Europe/Lisbon # Set container timezone for cron schedules
|
||||
- UPSNAP_INTERVAL=@every 2h # Sets the interval in which the devices are pinged
|
||||
- UPSNAP_SCAN_RANGE=10.0.0.0/21 # Scan range is used for device discovery on local network
|
||||
- UPSNAP_WEBSITE_TITLE=Lino Silva # Custom website title
|
||||
# dns is used for name resolution during network scan
|
||||
dns:
|
||||
- 10.0.2.11
|
||||
- 10.0.2.12
|
||||
- 10.0.2.13
|
||||
healthcheck:
|
||||
test: curl -fs "http://localhost:5000/api/health" || exit 1
|
||||
interval: 10s
|
||||
Reference in New Issue
Block a user