remove some unused services
All checks were successful
Deploy Containers / Prepare (push) Successful in 38s
All checks were successful
Deploy Containers / Prepare (push) Successful in 38s
This commit is contained in:
9
main.yml
9
main.yml
@@ -28,9 +28,6 @@
|
|||||||
- name: Deploy PocketID
|
- name: Deploy PocketID
|
||||||
import_tasks: tasks/pocketid.yml
|
import_tasks: tasks/pocketid.yml
|
||||||
tags: pocketid_deploy
|
tags: pocketid_deploy
|
||||||
- name: Deploy Ntfy
|
|
||||||
import_tasks: tasks/ntfy.yml
|
|
||||||
tags: ntfy_deploy
|
|
||||||
- name: Deploy NZBGet
|
- name: Deploy NZBGet
|
||||||
import_tasks: tasks/nzbget.yml
|
import_tasks: tasks/nzbget.yml
|
||||||
tags: nzbget_deploy
|
tags: nzbget_deploy
|
||||||
@@ -73,9 +70,6 @@
|
|||||||
- name: Deploy Jackett
|
- name: Deploy Jackett
|
||||||
import_tasks: tasks/jackett.yml
|
import_tasks: tasks/jackett.yml
|
||||||
tags: jackett_deploy
|
tags: jackett_deploy
|
||||||
- name: Deploy NFL Proxy
|
|
||||||
import_tasks: tasks/nfl-proxy.yml
|
|
||||||
tags: nfl-proxy_deploy
|
|
||||||
- name: Deploy Uptime Kuma
|
- name: Deploy Uptime Kuma
|
||||||
import_tasks: tasks/uptime-kuma.yml
|
import_tasks: tasks/uptime-kuma.yml
|
||||||
tags: uptime-kuma_deploy
|
tags: uptime-kuma_deploy
|
||||||
@@ -115,9 +109,6 @@
|
|||||||
- name: Deploy Owncloud
|
- name: Deploy Owncloud
|
||||||
import_tasks: tasks/owncloud.yml
|
import_tasks: tasks/owncloud.yml
|
||||||
tags: owncloud_deploy
|
tags: owncloud_deploy
|
||||||
- name: Deploy Mastodon
|
|
||||||
import_tasks: tasks/mastodon.yml
|
|
||||||
tags: mastodon_deploy
|
|
||||||
|
|
||||||
- hosts: nas
|
- hosts: nas
|
||||||
|
|
||||||
|
|||||||
@@ -1,99 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Create folder structure
|
|
||||||
file:
|
|
||||||
path: "{{ item }}"
|
|
||||||
state: directory
|
|
||||||
with_items:
|
|
||||||
- "{{ data_dir }}/mastodon"
|
|
||||||
- "{{ data_dir }}/mastodon/db"
|
|
||||||
- "{{ data_dir }}/mastodon/redis"
|
|
||||||
- "{{ data_dir }}/mastodon/public"
|
|
||||||
|
|
||||||
- name: Create Mastodon Network
|
|
||||||
docker_network:
|
|
||||||
name: mastodon
|
|
||||||
|
|
||||||
- name: Pull latest Postgres Docker Image
|
|
||||||
docker_image:
|
|
||||||
name: postgres
|
|
||||||
tag: 14-alpine
|
|
||||||
source: pull
|
|
||||||
- name: Pull latest Redis Docker Image
|
|
||||||
docker_image:
|
|
||||||
name: redis
|
|
||||||
tag: 7-alpine
|
|
||||||
source: pull
|
|
||||||
- name: Pull latest Mastodon Docker Image
|
|
||||||
docker_image:
|
|
||||||
name: lscr.io/linuxserver/mastodon
|
|
||||||
tag: latest
|
|
||||||
source: pull
|
|
||||||
|
|
||||||
- name: Create Mastodon DB Container
|
|
||||||
docker_container:
|
|
||||||
name: mastodon_db
|
|
||||||
image: postgres:14-alpine
|
|
||||||
recreate: true
|
|
||||||
restart_policy: unless-stopped
|
|
||||||
networks:
|
|
||||||
- name: mastodon
|
|
||||||
volumes:
|
|
||||||
- "{{ data_dir }}/mastodon/db:/var/lib/postgresql/data"
|
|
||||||
healthcheck:
|
|
||||||
test: CMD pg_isready -U postgres
|
|
||||||
env:
|
|
||||||
POSTGRES_HOST_AUTH_METHOD: "trust"
|
|
||||||
POSTGRES_USER: mastodon
|
|
||||||
POSTGRES_PASSWORD: "{{ MASTODON_DB_PASS }}"
|
|
||||||
POSTGRES_DB: mastodon
|
|
||||||
|
|
||||||
- name: Create Mastodon Redis Container
|
|
||||||
docker_container:
|
|
||||||
name: mastodon_redis
|
|
||||||
image: redis:7-alpine
|
|
||||||
recreate: true
|
|
||||||
restart_policy: unless-stopped
|
|
||||||
healthcheck:
|
|
||||||
test: CMD redis-cli ping
|
|
||||||
networks:
|
|
||||||
- name: mastodon
|
|
||||||
volumes:
|
|
||||||
- "{{ data_dir }}/mastodon/redis:/data"
|
|
||||||
|
|
||||||
- name: Create Mastodon Container
|
|
||||||
docker_container:
|
|
||||||
name: mastodon
|
|
||||||
image: lscr.io/linuxserver/mastodon:latest
|
|
||||||
recreate: true
|
|
||||||
restart_policy: unless-stopped
|
|
||||||
networks:
|
|
||||||
- name: mastodon
|
|
||||||
- name: "{{ docker_network_name }}"
|
|
||||||
volumes:
|
|
||||||
- "{{ data_dir }}/mastodon/public:/config"
|
|
||||||
env:
|
|
||||||
PUID: "{{ PUID }}"
|
|
||||||
PGID: "{{ PGID }}"
|
|
||||||
TZ: "{{ TZ }}"
|
|
||||||
LOCAL_DOMAIN: "{{ MASTODON_LOCAL_DOMAIN }}"
|
|
||||||
REDIS_HOST: "mastodon_redis"
|
|
||||||
REDIS_PORT: "6379"
|
|
||||||
DB_HOST: "mastodon_db"
|
|
||||||
DB_USER: "mastodon"
|
|
||||||
DB_PASS: "{{ MASTODON_DB_PASS }}"
|
|
||||||
DB_PORT: "5432"
|
|
||||||
ES_ENABLED: "false"
|
|
||||||
SECRET_KEY_BASE: "{{ MASTODON_SECRET_KEY_BASE }}"
|
|
||||||
VAPID_PRIVATE_KEY: "{{ MASTODON_VAPID_PRIVATE_KEY }}"
|
|
||||||
VAPID_PUBLIC_KEY: "{{ MASTODON_VAPID_PUBLIC_KEY }}"
|
|
||||||
OTP_SECRET: "{{ MASTODON_OTP_SECRET }}"
|
|
||||||
S3_ENABLED: "false"
|
|
||||||
ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY: "{{ MASTODON_ARE_DETERMINISTIC }}"
|
|
||||||
ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT: "{{ MASTODON_ARE_KEY_DERIVATION }}"
|
|
||||||
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY: "{{ MASTODON_ARE_PRIMARY }}"
|
|
||||||
labels:
|
|
||||||
traefik.enable: "true"
|
|
||||||
traefik.http.routers.mst.rule: Host(`mst.fntz.net`)
|
|
||||||
traefik.http.routers.mst.entrypoints: webSecure
|
|
||||||
traefik.http.routers.mst.tls.certresolver: letsencrypt
|
|
||||||
traefik.http.services.mst.loadbalancer.server.url: "https://mastodon"
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Create folder structure
|
|
||||||
file:
|
|
||||||
path: "{{ item }}"
|
|
||||||
state: directory
|
|
||||||
with_items:
|
|
||||||
- "{{ data_dir }}/nfl-proxy"
|
|
||||||
|
|
||||||
- name: "Clone latest NFL-Proxy"
|
|
||||||
git:
|
|
||||||
repo: "git@git.alexav.gg:alex/nfl-proxy.git"
|
|
||||||
dest: "{{ data_dir }}/nfl-proxy"
|
|
||||||
|
|
||||||
- name: "Stop & remove existing PM2 containers"
|
|
||||||
ignore_errors: yes
|
|
||||||
shell: |
|
|
||||||
/home/alex/.nvm/versions/node/v24.4.0/bin/pm2 delete "nfl-proxy"
|
|
||||||
|
|
||||||
- name: "Start new PM2 container"
|
|
||||||
args:
|
|
||||||
chdir: "{{ data_dir }}/nfl-proxy"
|
|
||||||
shell: |
|
|
||||||
/home/alex/.nvm/versions/node/v24.4.0/bin/pm2 start --name="nfl-proxy" "venv/bin/activate && venv/bin/python main.py"
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
---
|
|
||||||
- name: Create folder structure
|
|
||||||
file:
|
|
||||||
path: "{{ item }}"
|
|
||||||
state: directory
|
|
||||||
with_items:
|
|
||||||
- "{{ data_dir }}/ntfy"
|
|
||||||
- "{{ data_dir }}/ntfy/cache"
|
|
||||||
- "{{ data_dir }}/ntfy/data"
|
|
||||||
|
|
||||||
- name: Pull latest Ntfy Docker Image
|
|
||||||
docker_image:
|
|
||||||
name: binwiederhier/ntfy
|
|
||||||
tag: latest
|
|
||||||
source: pull
|
|
||||||
|
|
||||||
- name: Create Ntfy Docker Container
|
|
||||||
docker_container:
|
|
||||||
name: ntfy
|
|
||||||
image: binwiederhier/ntfy
|
|
||||||
command: serve
|
|
||||||
restart_policy: unless-stopped
|
|
||||||
recreate: true
|
|
||||||
networks:
|
|
||||||
- name: homelab
|
|
||||||
volumes:
|
|
||||||
- "{{ data_dir }}/ntfy/cache:/var/cache/ntfy"
|
|
||||||
- "{{ data_dir }}/ntfy/data:/etc/ntfy"
|
|
||||||
env:
|
|
||||||
UPSTREAM_BASE_URL: "{{ NTFY_UPSTREAM_BASE_URL }}"
|
|
||||||
BASE_URL: "{{ NTFY_BASE_URL }}"
|
|
||||||
labels:
|
|
||||||
traefik.enable: "true"
|
|
||||||
traefik.http.routers.ntfy.rule: Host(`push.fntz.net`)
|
|
||||||
traefik.http.routers.ntfy.entrypoints: webSecure
|
|
||||||
traefik.http.routers.ntfy.tls.certresolver: letsencrypt
|
|
||||||
Reference in New Issue
Block a user