From 2ba39d8994b7fe95d368f42558bf0c9789a80a2f Mon Sep 17 00:00:00 2001 From: Brodin Date: Thu, 29 Aug 2024 17:59:41 -0400 Subject: [PATCH 1/4] added lazylib for some reason --- lazylibrarian/.env.example | 7 ++++++ lazylibrarian/docker-compose.yml | 25 ++++++++++++++++++++ notes/docker-compose.yml | 39 ++++++++++++++++++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 lazylibrarian/.env.example create mode 100644 lazylibrarian/docker-compose.yml create mode 100644 notes/docker-compose.yml diff --git a/lazylibrarian/.env.example b/lazylibrarian/.env.example new file mode 100644 index 0000000..604cbf5 --- /dev/null +++ b/lazylibrarian/.env.example @@ -0,0 +1,7 @@ +DOMAIN=example.com +UID=1000 +GID=1000 +TZ=Etc/UTC +CONFIG_LOCATION=./config +DATA_LOCATION=./data +EMAIL=example@mail.com diff --git a/lazylibrarian/docker-compose.yml b/lazylibrarian/docker-compose.yml new file mode 100644 index 0000000..b73dad5 --- /dev/null +++ b/lazylibrarian/docker-compose.yml @@ -0,0 +1,25 @@ +services: + lazylibrarian: + image: lscr.io/linuxserver/lazylibrarian:latest + container_name: lazylibrarian + environment: + PUID: 1000 + PGID: 1000 + TZ: Etc/UTC + DOCKER_MODS: linuxserver/mods:universal-calibre|linuxserver/mods:lazylibrarian-ffmpeg #optional + VIRTUAL_HOST: lazylib.brodin.rocks + LETSENCRYPT_HOST: lazylib.brodin.rocks + LETSENCRYPT_EMAIL: ${EMAIL} + volumes: + - ./config/lazylibrarian:/config + - /media/seedbox:/downloads + - ${DATA_LOCATION}/Downloads:/downloads-local + - ${DATA_LOCATION}/Audiobooks:/audiobooks + - ${DATA_LOCATION}/Books:/books + ports: + - 5299:5299 + restart: unless-stopped +networks: + default: + name: nginx-proxy + external: true diff --git a/notes/docker-compose.yml b/notes/docker-compose.yml new file mode 100644 index 0000000..2ca717d --- /dev/null +++ b/notes/docker-compose.yml @@ -0,0 +1,39 @@ +services: + db: + image: postgres:15 + volumes: + - /docker/joplindb:/var/lib/postgresql/data + ports: + - "5432:5432" + restart: unless-stopped + environment: + - POSTGRES_PASSWORD=postgres + - POSTGRES_USER=postgres + - POSTGRES_DB=joplin + app: + image: joplin/server:latest + depends_on: + - db + ports: + - "22300:22300" + restart: unless-stopped + environment: + - APP_PORT=22300 + - APP_BASE_URL=https://websiteurl.com + - DB_CLIENT=pg + - POSTGRES_PASSWORD=postgres + - POSTGRES_DATABASE=joplin + - POSTGRES_USER=postgres + - POSTGRES_PORT=5432 + - POSTGRES_HOST=db + - MAILER_ENABLED=1 + - MAILER_HOST=smtp.gmail.com + - MAILER_PORT=465 + - MAILER_SECURE=1 + - MAILER_AUTH_USER=youremail@gmail.com + - MAILER_AUTH_PASSWORD=Y0urP@ssw0rd + - MAILER_NOREPLY_NAME=Joplin + - MAILER_NOREPLY_EMAIL=email@email.com + +volumes: + joplindb: \ No newline at end of file -- 2.45.1 From 6258e7b785521042ac7fe983889ad5c2228eb1ad Mon Sep 17 00:00:00 2001 From: Brodin Date: Sat, 14 Sep 2024 14:41:15 -0400 Subject: [PATCH 2/4] lots of dashboard and tech stuff --- arr/docker-compose.yml | 47 +++++++++++++++++++++++++++++++ dashboard/docker-compose.yml | 11 ++++++++ games/.gitignore | 2 +- gitea/.gitignore | 2 +- run_all.sh | 31 ++++++++++++++++---- sites/techblog/.env.example | 5 ++++ sites/techblog/.gitignore | 3 ++ sites/techblog/docker-compose.yml | 41 +++++++++++++++++++++++++++ sites/techblog/update.sh | 2 ++ 9 files changed, 137 insertions(+), 7 deletions(-) create mode 100644 sites/techblog/.env.example create mode 100644 sites/techblog/.gitignore create mode 100644 sites/techblog/docker-compose.yml create mode 100755 sites/techblog/update.sh diff --git a/arr/docker-compose.yml b/arr/docker-compose.yml index a0f8fb1..547ac57 100644 --- a/arr/docker-compose.yml +++ b/arr/docker-compose.yml @@ -1,4 +1,5 @@ services: + radarr: image: lscr.io/linuxserver/radarr:latest container_name: radarr @@ -40,6 +41,12 @@ services: ports: - 8989:8989 restart: unless-stopped + flaresolverr: + image: ghcr.io/flaresolverr/flaresolverr:latest + container_name: flaresolverr + restart: unless-stopped + ports: + - 8191:8191 prowlarr: image: lscr.io/linuxserver/prowlarr:latest container_name: prowlarr @@ -167,6 +174,46 @@ services: - /media/seedbox:/downloads - ${DATA_LOCATION}/Downloads:/downloads-local restart: unless-stopped + calibre: + image: lscr.io/linuxserver/calibre:latest + container_name: calibre + security_opt: + - seccomp:unconfined #optional + environment: + - PUID=1000 + - PGID=1000 + - TZ=Etc/UTC + # - PASSWORD= #optional + # - CLI_ARGS= #optional + volumes: + - ${CONFIG_LOCATION}/calibre:/config + - ${DATA_LOCATION}/Books:/books + - ${DATA_LOCATION}/Audiobooks:/audiobooks + - /media/seedbox:/downloads + - ${DATA_LOCATION}/Downloads:/downloads-local + ports: + - 8180:8080 + - 8281:8181 + - 8182:8081 + restart: unless-stopped + calibre-web: + image: lscr.io/linuxserver/calibre-web:latest + container_name: calibre-web + environment: + - PUID=1000 + - PGID=1000 + - TZ=Etc/UTC + - DOCKER_MODS=linuxserver/mods:universal-calibre #optional + - OAUTHLIB_RELAX_TOKEN_SCOPE=1 #optional + - VIRTUAL_HOST=calibre-web.${DOMAIN} + - LETSENCRYPT_HOST=calibre-web.${DOMAIN} + - LETSENCRYPT_EMAIL=${EMAIL} + volumes: + - ${CONFIG_LOCATION}/calibre-web:/config + - ${DATA_LOCATION}/Books:/books + ports: + - 8083:8083 + restart: unless-stopped networks: default: name: nginx-proxy diff --git a/dashboard/docker-compose.yml b/dashboard/docker-compose.yml index 6329dd8..66d6a30 100644 --- a/dashboard/docker-compose.yml +++ b/dashboard/docker-compose.yml @@ -46,6 +46,17 @@ services: volumes: - ${CONFIG_LOCATION}/prometheus:/etc/prometheus - ${DATA_LOCATION}/prometheus:/prometheus + node_exporter: + image: quay.io/prometheus/node-exporter:latest + container_name: node_exporter + command: + - '--path.rootfs=/host' + ports: + - 9100:9100 + pid: host + restart: unless-stopped + volumes: + - '/:/host:ro,rslave' grafana: image: grafana/grafana-enterprise container_name: grafana diff --git a/games/.gitignore b/games/.gitignore index 4227bcf..65eef93 100644 --- a/games/.gitignore +++ b/games/.gitignore @@ -1 +1 @@ -db/* \ No newline at end of file +db diff --git a/gitea/.gitignore b/gitea/.gitignore index 8b64bda..0850e40 100644 --- a/gitea/.gitignore +++ b/gitea/.gitignore @@ -1,3 +1,3 @@ config/* data/* -db/* +db diff --git a/run_all.sh b/run_all.sh index 3dfd04a..dfa59e0 100755 --- a/run_all.sh +++ b/run_all.sh @@ -1,19 +1,40 @@ #!/bin/bash -cd arr +cd nginx-proxy sudo docker compose up -d -cd ../botc +cd ../arr sudo docker compose up -d -cd ../dashboard -sudo docker compose up -d -cd ../fusiondance +cd ../dashboard sudo docker compose up -d cd ../games sudo docker compose up -d +cd ../gita +sudo docker compose up -d +cd ../lazylibrarian +sudo docker compose up -d cd ../nextcloud sudo docker compose up -d cd ../plex sudo docker compose up -d cd ../readers sudo docker compose up -d +cd ../recipes +sudo docker compose up -d cd ../rss-reader +sudo docker compose up -d +cd ../sites +cd botc +sudo docker compose up -d +cd ../fusiondance +sudo docker compose up -d +cd ../gamesclub +sudo docker compose up -d +cd ../photos +sudo docker compose up -d +cd .. +cd ../stats +sudo docker compose up -d +cd ../vnc +sudo docker compose up -d +cd ../wiki +sudo docker compose up -d \ No newline at end of file diff --git a/sites/techblog/.env.example b/sites/techblog/.env.example new file mode 100644 index 0000000..f160373 --- /dev/null +++ b/sites/techblog/.env.example @@ -0,0 +1,5 @@ +DOMAIN=example.com +DBPASS=password +EMAIL=example@mail.com +DOMAIN=example.com + diff --git a/sites/techblog/.gitignore b/sites/techblog/.gitignore new file mode 100644 index 0000000..0485494 --- /dev/null +++ b/sites/techblog/.gitignore @@ -0,0 +1,3 @@ +db/* +content/* +config.*.json \ No newline at end of file diff --git a/sites/techblog/docker-compose.yml b/sites/techblog/docker-compose.yml new file mode 100644 index 0000000..d84a5a4 --- /dev/null +++ b/sites/techblog/docker-compose.yml @@ -0,0 +1,41 @@ +services: + + ghost: + image: ghost:5 + restart: always + ports: + - 2373:2368 + expose: + - 2373 + environment: + # see https://ghost.org/docs/config/#configuration-options + database__client: mysql + database__connection__host: techblog-db-1 + database__connection__user: root + database__connection__password: ${DBPASS} + database__connection__database: ghost + VIRTUAL_HOST: "blog.${DOMAIN}" + VIRTUAL_PORT: 2373 + LETSENCRYPT_HOST: "blog.${DOMAIN}" + LETSENCRYPT_EMAIL: ${EMAIL} + # url: http://0.0.0.0:2373 #Dev + url: "https://blog.${DOMAIN}" #Prod + # contrary to the default mentioned in the linked documentation, this image defaults to NODE_ENV=production (so development mode needs to be explicitly specified if desired) + # NODE_ENV: development + volumes: + - ./content:/var/lib/ghost/content + # - ./themes:/var/lib/ghost/current/content/themes:rw + db: + image: mysql:8.0 + restart: always + environment: + MYSQL_DATABASE: ghost + MYSQL_ROOT_PASSWORD: ${DBPASS} + volumes: + - db:/var/lib/mysql +volumes: + db: +networks: + default: + name: nginx-proxy + external: true \ No newline at end of file diff --git a/sites/techblog/update.sh b/sites/techblog/update.sh new file mode 100755 index 0000000..e14c8ce --- /dev/null +++ b/sites/techblog/update.sh @@ -0,0 +1,2 @@ +sudo docker cp config.development.json techblog-ghost-1:/var/lib/ghost/. +sudo docker cp config.production.json techblog-ghost-1:/var/lib/ghost/. \ No newline at end of file -- 2.45.1 From 79a57aac8ff98f877d0e88011d0b1ec3bf384665 Mon Sep 17 00:00:00 2001 From: Brodin Date: Sat, 14 Sep 2024 14:42:03 -0400 Subject: [PATCH 3/4] removing notes app. It wasn't great --- notes/docker-compose.yml | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 notes/docker-compose.yml diff --git a/notes/docker-compose.yml b/notes/docker-compose.yml deleted file mode 100644 index 2ca717d..0000000 --- a/notes/docker-compose.yml +++ /dev/null @@ -1,39 +0,0 @@ -services: - db: - image: postgres:15 - volumes: - - /docker/joplindb:/var/lib/postgresql/data - ports: - - "5432:5432" - restart: unless-stopped - environment: - - POSTGRES_PASSWORD=postgres - - POSTGRES_USER=postgres - - POSTGRES_DB=joplin - app: - image: joplin/server:latest - depends_on: - - db - ports: - - "22300:22300" - restart: unless-stopped - environment: - - APP_PORT=22300 - - APP_BASE_URL=https://websiteurl.com - - DB_CLIENT=pg - - POSTGRES_PASSWORD=postgres - - POSTGRES_DATABASE=joplin - - POSTGRES_USER=postgres - - POSTGRES_PORT=5432 - - POSTGRES_HOST=db - - MAILER_ENABLED=1 - - MAILER_HOST=smtp.gmail.com - - MAILER_PORT=465 - - MAILER_SECURE=1 - - MAILER_AUTH_USER=youremail@gmail.com - - MAILER_AUTH_PASSWORD=Y0urP@ssw0rd - - MAILER_NOREPLY_NAME=Joplin - - MAILER_NOREPLY_EMAIL=email@email.com - -volumes: - joplindb: \ No newline at end of file -- 2.45.1 From dda3adb7236e7db2c8dcc184c133e2f817f850f2 Mon Sep 17 00:00:00 2001 From: Brodin Date: Sat, 14 Sep 2024 14:43:30 -0400 Subject: [PATCH 4/4] removing whitespaces --- arr/docker-compose.yml | 1 - sites/techblog/docker-compose.yml | 1 - 2 files changed, 2 deletions(-) diff --git a/arr/docker-compose.yml b/arr/docker-compose.yml index 547ac57..f7504dd 100644 --- a/arr/docker-compose.yml +++ b/arr/docker-compose.yml @@ -1,5 +1,4 @@ services: - radarr: image: lscr.io/linuxserver/radarr:latest container_name: radarr diff --git a/sites/techblog/docker-compose.yml b/sites/techblog/docker-compose.yml index d84a5a4..09a4b0a 100644 --- a/sites/techblog/docker-compose.yml +++ b/sites/techblog/docker-compose.yml @@ -1,5 +1,4 @@ services: - ghost: image: ghost:5 restart: always -- 2.45.1