mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 16:55:00 +01:00
add uptime
This commit is contained in:
parent
92d33957aa
commit
e4245532d9
6 changed files with 62 additions and 3 deletions
42
apps/uptime/uptime.json
Normal file
42
apps/uptime/uptime.json
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
"interval_seconds": 30,
|
||||
"db_url": "/app/config/uptime.db",
|
||||
"websites": [
|
||||
{
|
||||
"name": "nilstrieb.dev",
|
||||
"url": "https://nilstrieb.dev"
|
||||
},
|
||||
{
|
||||
"name": "docker.nilstrieb.dev",
|
||||
"url": "http://docker.nilstrieb.dev"
|
||||
},
|
||||
{
|
||||
"name": "vps1.nilstrieb.dev",
|
||||
"url": "http://vps1.nilstrieb.dev"
|
||||
},
|
||||
{
|
||||
"name": "vps2.nilstrieb.dev",
|
||||
"url": "http://vps2.nilstrieb.dev"
|
||||
},
|
||||
{
|
||||
"name": "bisect-rustc.nilstrieb.dev",
|
||||
"url": "http://bisect-rustc.nilstrieb.dev"
|
||||
},
|
||||
{
|
||||
"name": "hugo-chat.nilstrieb.dev",
|
||||
"url": "http://hugo-chat.nilstrieb.dev"
|
||||
},
|
||||
{
|
||||
"name": "api.hugo-chat.nilstrieb.dev",
|
||||
"url": "https://api.hugo-chat.nilstrieb.dev/api/v2/rooms"
|
||||
},
|
||||
{
|
||||
"name": "cors-school.nilstrieb.dev",
|
||||
"url": "http://cors-school.nilstrieb.dev"
|
||||
},
|
||||
{
|
||||
"name": "api.cors-school.nilstrieb.dev",
|
||||
"url": "https://api.cors-school.nilstrieb.dev/api/hugo"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -10,4 +10,4 @@
|
|||
- name: Docker compose up! 🚀
|
||||
community.docker.docker_compose:
|
||||
project_src: /apps
|
||||
state: present
|
||||
state: restarted
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@
|
|||
- name: Docker compose up! 🚀
|
||||
community.docker.docker_compose:
|
||||
project_src: /apps
|
||||
state: present
|
||||
state: restarted
|
||||
#####
|
||||
# POST: things after starting up
|
||||
#####
|
||||
|
|
|
|||
|
|
@ -32,3 +32,7 @@ vps1.nilstrieb.dev {
|
|||
root * /var/www/html/debug
|
||||
file_server
|
||||
}
|
||||
|
||||
uptime.nilstrieb.dev {
|
||||
reverse_proxy * localhost:5010
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1,3 @@
|
|||
## ports
|
||||
|
||||
- `5010`: uptime
|
||||
|
|
@ -1,3 +1,14 @@
|
|||
version: "3.8"
|
||||
services: {}
|
||||
services:
|
||||
uptime:
|
||||
container_name: uptime
|
||||
image: "docker.nilstrieb.dev/uptime:8af7829b"
|
||||
restart: always
|
||||
volumes:
|
||||
- "/apps/uptime:/app/config"
|
||||
environment:
|
||||
UPTIME_CONFIG_PATH: /app/config/uptime.json
|
||||
ports:
|
||||
- "5010:3000"
|
||||
|
||||
networks: {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue