From 32759af94689541c0d9061c51f46523eeef5f4c3 Mon Sep 17 00:00:00 2001 From: Paul Walko Date: Sun, 25 Sep 2022 10:18:12 -0400 Subject: [PATCH] clean up docker --- fogcutter/docker/firefly.sh | 2 +- fogcutter/docker/jellyfin.sh | 33 ------------- fogcutter/docker/minecraft.sh | 27 ---------- fogcutter/docker/nginx.sh | 2 +- fogcutter/docker/paperless.sh | 93 ----------------------------------- fogcutter/docker/plex.sh | 1 + fogcutter/docker/unifi.sh | 29 ----------- 7 files changed, 3 insertions(+), 184 deletions(-) delete mode 100755 fogcutter/docker/jellyfin.sh delete mode 100755 fogcutter/docker/minecraft.sh delete mode 100755 fogcutter/docker/paperless.sh delete mode 100755 fogcutter/docker/unifi.sh diff --git a/fogcutter/docker/firefly.sh b/fogcutter/docker/firefly.sh index c63fee0..d6c9a6b 100755 --- a/fogcutter/docker/firefly.sh +++ b/fogcutter/docker/firefly.sh @@ -13,7 +13,7 @@ up () { --name firefly \ --restart unless-stopped \ --env-file firefly.env \ - --env SITE_OWNER=paulsw.pw@gmail.com \ + --env SITE_OWNER=paul@bigcavemaps.com \ --env TZ=US/Eastern \ --env TRUSTED_PROXIES=** \ --env DB_CONNECTION=mysql \ diff --git a/fogcutter/docker/jellyfin.sh b/fogcutter/docker/jellyfin.sh deleted file mode 100755 index 9407e63..0000000 --- a/fogcutter/docker/jellyfin.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash - -set -e - -up () { - docker network create pew-net || true - - # Exposed on port 8096 in pew-net - # TODO intel hw acceleration - docker run \ - --detach \ - --name jellyfin \ - --restart unless-stopped \ - --env PUID=1000 \ - --env PGID=1000 \ - --env TZ=US/Eastern \ - --volume /bigdata/k8s-config/jellyfin/config:/config:rw \ - --volume /bigdata/media/movies:/media/movies:ro \ - --volume /bigdata/media/music:/media/music:ro \ - --network pew-net \ - ghcr.io/linuxserver/jellyfin:latest -} - -down () { - docker stop jellyfin || true - docker rm jellyfin || true -} - -logs () { - docker logs --follow jellyfin -} - -$@ diff --git a/fogcutter/docker/minecraft.sh b/fogcutter/docker/minecraft.sh deleted file mode 100755 index 6c56b3e..0000000 --- a/fogcutter/docker/minecraft.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/bash - -set -e - -up () { - docker run \ - --detach \ - --name minecraft \ - --restart unless-stopped \ - --env EULA=TRUE \ - --env MAX_MEMORY=8G \ - --env VERSION=1.18.1 \ - --volume /bigdata/k8s-config/minecraft/1.18-data:/data:rw \ - --publish 127.0.0.1:25565:25565 \ - docker.io/itzg/minecraft-server:latest -} - -down () { - docker stop minecraft || true - docker rm minecraft || true -} - -logs () { - docker logs --follow minecraft -} - -$@ diff --git a/fogcutter/docker/nginx.sh b/fogcutter/docker/nginx.sh index d0a2b12..bd65c4e 100755 --- a/fogcutter/docker/nginx.sh +++ b/fogcutter/docker/nginx.sh @@ -16,7 +16,7 @@ up () { --env TZ=US/Eastern \ --env URL=seaturtle.pw \ --env VALIDATION=http \ - --env EMAIL=paulsw.pw@gmail.com \ + --env EMAIL=paul@bigcavemaps.com \ --env SUBDOMAINS=cave,ff,git,jf,nc,plex \ --env EXTRA_DOMAINS=paul.walko.org,mp.bigcavemaps.com,tile.bigcavemaps.com \ --volume /bigdata/k8s-config/nginx/nginx.conf:/config/nginx/nginx.conf:ro \ diff --git a/fogcutter/docker/paperless.sh b/fogcutter/docker/paperless.sh deleted file mode 100755 index 0d45094..0000000 --- a/fogcutter/docker/paperless.sh +++ /dev/null @@ -1,93 +0,0 @@ -#!/bin/bash - -set -e - -up () { - docker network create pew-net || true - - # Exposed on port 8000 in pew-net - docker run \ - --detach \ - --name paperless \ - --restart unless-stopped \ - --env USERMAP_UID=1000 \ - --env USERMAP_GID=1000 \ - --env PAPERLESS_REDIS=redis://paperless-redis:6379 \ - --env PAPERLESS_DBHOST=paperless-psql \ - --env PAPERLESS_TIKA_ENABLED=1 \ - --env PAPERLESS_TIKA_GOTENBERG_EDPOINT=http://paperless-gotenberg:3000 \ - --env PAPERLESS_TIKA_ENDPOINT=http://paperless-tika:9998 \ - --volume /bigdata/k8s-config/paperless/paperless/data:/usr/src/paperless/data:rw \ - --volume /bigdata/k8s-config/paperless/paperless/media:/usr/src/paperless/media:rw \ - --volume /bigdata/k8s-config/paperless/paperless/export:/usr/src/paperless/export:rw \ - --volume /bigdata/k8s-config/paperless/paperless/consume:/usr/src/paperless/consume:rw \ - --network pew-net \ - docker.io/jonaswinkler/paperless-ng:latest - - docker run \ - --detach \ - --name paperless-gotenberg \ - --restart unless-stopped \ - --env DISABLE_GOOGLE_CHROME=1 \ - --network pew-net \ - docker.io/thecodingmachine/gotenberg:latest - - docker run \ - --detach \ - --name paperless-psql \ - --env POSTGRES_DB=paperless \ - --env POSTGRES_USER=paperless \ - --env POSTGRES_PASSWORD=paperless \ - --volume /bigdata/k8s-config/paperless/postgres:/var/lib/postgresql/data:rw \ - --network pew-net \ - docker.io/postgres:13 - - docker run \ - --detach \ - --name paperless-redis \ - --restart unless-stopped \ - --network pew-net \ - docker.io/redis:6.0 - - docker run \ - --detach \ - --name paperless-tika \ - --restart unless-stopped \ - --network pew-net \ - docker.io/apache/tika:latest -} - -down () { - docker stop paperless || true - docker rm paperless || true - docker stop paperless-gotenberg || true - docker rm paperless-gotenberg || true - docker stop paperless-psql || true - docker rm paperless-psql || true - docker stop paperless-redis || true - docker rm paperless-redis || true - docker stop paperless-tika || true - docker rm paperless-tika || true -} - -logs () { - docker logs --follow paperless -} - -logsg () { - docker logs --follow paperless-gotenberg -} - -logsp () { - docker logs --follow paperless-psql -} - -logsr () { - docker logs --follow paperless-redis -} - -logst () { - docker logs --follow paperless-tika -} - -$@ diff --git a/fogcutter/docker/plex.sh b/fogcutter/docker/plex.sh index 63bab91..e43464f 100755 --- a/fogcutter/docker/plex.sh +++ b/fogcutter/docker/plex.sh @@ -15,6 +15,7 @@ up () { --env VERSION=docker \ --volume /bigdata/k8s-config/plex/config:/config:rw \ --volume /bigdata/media/movies:/media/movies:ro \ + --volume /bigdata/media/audiobooks:/media/audiobooks:ro \ --volume /bigdata/media/music:/media/music:ro \ --volume /media-vtluug:/media/media-vtluug:ro \ --network pew-net \ diff --git a/fogcutter/docker/unifi.sh b/fogcutter/docker/unifi.sh deleted file mode 100755 index dea5d3e..0000000 --- a/fogcutter/docker/unifi.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -set -e - -up () { - docker run \ - --detach \ - --name unifi \ - --restart unless-stopped \ - --env PUID=1000 \ - --env GUID=1000 \ - --volume /bigdata/k8s-config/unifi/config:/config:rw \ - --publish 3478:3478/udp \ - --publish 10001:10001/udp \ - --publish 8080:8080/tcp \ - --publish 8443:8443/tcp \ - ghcr.io/linuxserver/unifi-controller:6.5.54-ls134 -} - -down () { - docker stop unifi || true - docker rm unifi || true -} - -logs () { - docker logs --follow unifi -} - -$@