delet
parent
4737d204ff
commit
10f60e4d5b
|
@ -1,33 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
up () {
|
||||
docker network create pew-net || true
|
||||
|
||||
# Exposed on port 4040 in pew-net
|
||||
docker run \
|
||||
--detach \
|
||||
--name airsonic \
|
||||
--restart unless-stopped \
|
||||
--env PUID=1000 \
|
||||
--env PGID=1000 \
|
||||
--env TZ=US/Eastern \
|
||||
--volume /bigdata/k8s-config/airsonic/config:/config:rw \
|
||||
--volume /bigdata/media/music:/media/music:ro \
|
||||
--volume /bigdata/media/playlists:/media/playlists:ro \
|
||||
--volume /bigdata/media/podcasts:/media/podcasts:ro \
|
||||
--network pew-net \
|
||||
ghcr.io/linuxserver/airsonic:v10.6.2-ls83
|
||||
}
|
||||
|
||||
down () {
|
||||
docker stop airsonic || true
|
||||
docker rm airsonic || true
|
||||
}
|
||||
|
||||
logs () {
|
||||
docker logs --follow airsonic
|
||||
}
|
||||
|
||||
$@
|
|
@ -1,9 +0,0 @@
|
|||
[Unit]
|
||||
Description=Nextcloud cron and scan for any new ebooks
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/docker exec nextcloud /bin/bash -c "if ! command -v sudo &> /dev/null; then apt-get update && apt-get install -y sudo; fi; sudo -u www-data php -f /var/www/html/cron.php && sudo -u www-data /var/www/html/occ files:scan --path='/pew/files/ebooks'"
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
|
@ -1,9 +0,0 @@
|
|||
[Unit]
|
||||
Description=Run nextcloud-cron service every 10 minutes and on boot
|
||||
|
||||
[Timer]
|
||||
OnBootSec=10min
|
||||
OnUnitActiveSec=10min
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
|
@ -1,78 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
# to scan new files: k exec --stdin --tty nextcloud-POD -npew -- /bin/bash -c "/var/www/html/occ files:scan --path='/USER/files'"
|
||||
|
||||
up () {
|
||||
loginctl enable-linger $USER
|
||||
docker network create pew-net || true
|
||||
|
||||
# Exposed on port 80 in pew-net
|
||||
# Must edit /var/www/html/config/config.php file after initial setup to change settings
|
||||
docker run \
|
||||
--detach \
|
||||
--name nextcloud \
|
||||
--restart unless-stopped \
|
||||
--env OVERWRITEHOST=nc.seaturtle.pw \
|
||||
--env OVERWRITEPROTOCOL=https \
|
||||
--env MYSQL_DATABASE=nextcloud \
|
||||
--env MYSQL_USER=nextcloud \
|
||||
--env MYSQL_PASSWORD=nextcloud \
|
||||
--env MYSQL_HOST=nextcloud-mariadb \
|
||||
--env REDIS_HOST=nextcloud-redis \
|
||||
--env REDIS_HOST_PASSWORD=nextcloud \
|
||||
--volume /bigdata/k8s-config/nextcloud/data:/var/www/html:rw \
|
||||
--network pew-net \
|
||||
docker.io/nextcloud:20.0.1-apache
|
||||
|
||||
# Exposed on port 3306 in pew-net
|
||||
docker run \
|
||||
--detach \
|
||||
--name nextcloud-mariadb \
|
||||
--restart unless-stopped \
|
||||
--env MYSQL_RANDOM_ROOT_PASSWORD=notnullvalue \
|
||||
--env MYSQL_PASSWORD=nextcloud \
|
||||
--env MYSQL_DATABASE=nextcloud \
|
||||
--env MYSQL_USER=nextcloud \
|
||||
--volume /bigdata/k8s-config/nextcloud/mariadb:/var/lib/mysql:rw \
|
||||
--network pew-net \
|
||||
docker.io/mariadb:10.5.6
|
||||
|
||||
# Exposed on port 6379 in pew-net
|
||||
docker run \
|
||||
--detach \
|
||||
--name nextcloud-redis \
|
||||
--restart unless-stopped \
|
||||
--network pew-net \
|
||||
docker.io/redis:6.0.9 --requirepass nextcloud
|
||||
|
||||
# Setup nextcloud cron and continuous scanning for new files
|
||||
cp nextcloud-cron.service nextcloud-cron.timer $HOME/.config/systemd/user/
|
||||
systemctl start --user nextcloud-cron.timer || systemctl restart --user nextcloud-cron.timer
|
||||
systemctl enable --user nextcloud-cron.timer
|
||||
|
||||
}
|
||||
|
||||
down () {
|
||||
docker stop nextcloud || true
|
||||
docker rm nextcloud || true
|
||||
docker stop nextcloud-mariadb || true
|
||||
docker rm nextcloud-mariadb || true
|
||||
docker stop nextcloud-redis || true
|
||||
docker rm nextcloud-redis || true
|
||||
}
|
||||
|
||||
logs () {
|
||||
docker logs -f nextcloud
|
||||
}
|
||||
|
||||
logsm () {
|
||||
docker logs -f nextcloud-mariadb
|
||||
}
|
||||
|
||||
logsr () {
|
||||
docker logs -f nextcloud-redis
|
||||
}
|
||||
|
||||
$@
|
Loading…
Reference in New Issue