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:
@@ -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