You've already forked nyx
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
e201ec61a6 | |||
448ef73f1c | |||
3b009f6c12 | |||
ae9fcde814 | |||
44d4cae317 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
.env
|
||||
data
|
||||
default.db
|
||||
|
3
crontab
Normal file
3
crontab
Normal file
@@ -0,0 +1,3 @@
|
||||
# do daily/weekly/monthly maintenance
|
||||
# min hour day month weekday command
|
||||
* */6 * * * /jobs/nyx-reset.sh
|
11
docker-compose.override.yml
Normal file
11
docker-compose.override.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
services:
|
||||
cron:
|
||||
image: bryanpedini/dockercron:${CRON_VERSION}
|
||||
restart: unless-stopped
|
||||
network_mode: none
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ${CRON_CRONTAB}:/crontab/root
|
||||
- ${CRON_JOBS}:/jobs
|
||||
- ${NYX_DEMO}:/opt/nyx
|
@@ -20,3 +20,10 @@ DIUN_EXCLUDE=
|
||||
# Nyx
|
||||
NYX_VERSION=latest
|
||||
NYX_DATA=./data
|
||||
NYX_DEMO=/path/to/nyx-demo
|
||||
# ^ where your docker-compose.override.yml resides for the demo deployment
|
||||
|
||||
# Cron
|
||||
CRON_VERSION=1.0-alpine3.16
|
||||
CRON_CRONTAB=./crontab
|
||||
CRON_JOBS=./jobs
|
||||
|
7
jobs/nyx-reset.sh
Executable file
7
jobs/nyx-reset.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
cd /opt/nyx
|
||||
docker compose stop nyx
|
||||
cp default.db data/data/data.db
|
||||
chown 1000:1000 data/data/data.db
|
||||
docker compose start nyx
|
Reference in New Issue
Block a user