n8n
This commit is contained in:
parent
67d56d9e6d
commit
5b1b7a9ef4
@ -91,30 +91,9 @@ pages:
|
|||||||
- type: reddit
|
- type: reddit
|
||||||
subreddit: selfhosted
|
subreddit: selfhosted
|
||||||
show-thumbnails: true
|
show-thumbnails: true
|
||||||
- type: reddit
|
|
||||||
subreddit: homeassistant
|
|
||||||
show-thumbnails: true
|
|
||||||
- type: reddit
|
|
||||||
subreddit: homeautomation
|
|
||||||
show-thumbnails: true
|
|
||||||
- type: reddit
|
- type: reddit
|
||||||
subreddit: sideproject
|
subreddit: sideproject
|
||||||
show-thumbnails: true
|
show-thumbnails: true
|
||||||
#### Development/Coding
|
|
||||||
- type: videos
|
|
||||||
channels:
|
|
||||||
- UC9x0AN7BWHpCDHSm9NiJFJQ # NetworkChuck
|
|
||||||
- type: group
|
|
||||||
widgets:
|
|
||||||
- type: reddit
|
|
||||||
subreddit: devops
|
|
||||||
show-thumbnails: true
|
|
||||||
- type: reddit
|
|
||||||
subreddit: python
|
|
||||||
show-thumbnails: true
|
|
||||||
- type: reddit
|
|
||||||
subreddit: unixporn
|
|
||||||
show-thumbnails: true
|
|
||||||
#### Mainstream/Reviewers
|
#### Mainstream/Reviewers
|
||||||
- type: videos
|
- type: videos
|
||||||
channels:
|
channels:
|
||||||
@ -153,7 +132,7 @@ pages:
|
|||||||
# - symbol: RDDT
|
# - symbol: RDDT
|
||||||
# name: Reddit
|
# name: Reddit
|
||||||
|
|
||||||
- name: Entertainment
|
- name: PopCulture
|
||||||
columns:
|
columns:
|
||||||
- size: full
|
- size: full
|
||||||
widgets:
|
widgets:
|
||||||
@ -161,7 +140,6 @@ pages:
|
|||||||
- type: videos
|
- type: videos
|
||||||
channels:
|
channels:
|
||||||
- UCnxQ8o9RpqxGF2oLHcCn9VQ # fantano
|
- UCnxQ8o9RpqxGF2oLHcCn9VQ # fantano
|
||||||
- UCgi2u-lGY-2i2ubLsUr6FbQ # FD Signifier
|
|
||||||
- UCQ86N3Ulc7yBuY4TZSWjaxA # [Deleted]
|
- UCQ86N3Ulc7yBuY4TZSWjaxA # [Deleted]
|
||||||
- type: group
|
- type: group
|
||||||
widgets:
|
widgets:
|
||||||
@ -178,43 +156,24 @@ pages:
|
|||||||
- type: videos
|
- type: videos
|
||||||
channels:
|
channels:
|
||||||
- UCLuYADJ6hESLHX87JnsGbjA # Josh Joshnson
|
- UCLuYADJ6hESLHX87JnsGbjA # Josh Joshnson
|
||||||
|
|
||||||
|
- name: BlackCulture
|
||||||
|
columns:
|
||||||
|
- size: full
|
||||||
|
widgets:
|
||||||
- type: group
|
- type: group
|
||||||
widgets:
|
widgets:
|
||||||
- type: reddit
|
- type: reddit
|
||||||
subreddit: blackpeopletwitter
|
subreddit: blackpeopletwitter
|
||||||
|
- type: videos
|
||||||
|
channels:
|
||||||
|
- UCgi2u-lGY-2i2ubLsUr6FbQ # FD Signifier
|
||||||
# - size: small
|
|
||||||
# widgets:
|
|
||||||
# - type: weather
|
|
||||||
# location: London, United Kingdom
|
|
||||||
|
|
||||||
# - type: markets
|
|
||||||
# markets:
|
|
||||||
# - symbol: SPY
|
|
||||||
# name: S&P 500
|
|
||||||
# - symbol: BTC-USD
|
|
||||||
# name: Bitcoin
|
|
||||||
# - symbol: NVDA
|
|
||||||
# name: NVIDIA
|
|
||||||
# - symbol: AAPL
|
|
||||||
# name: Apple
|
|
||||||
# - symbol: MSFT
|
|
||||||
# name: Microsoft
|
|
||||||
# - symbol: GOOGL
|
|
||||||
# name: Google
|
|
||||||
# - symbol: AMD
|
|
||||||
# name: AMD
|
|
||||||
# - symbol: RDDT
|
|
||||||
# name: Reddit
|
|
||||||
|
|
||||||
- name: News
|
- name: News
|
||||||
columns:
|
columns:
|
||||||
- size: small
|
- size: small
|
||||||
widgets:
|
widgets:
|
||||||
- type: calendar
|
- type: calendar
|
||||||
|
|
||||||
- size: full
|
- size: full
|
||||||
widgets:
|
widgets:
|
||||||
- type: group
|
- type: group
|
||||||
@ -245,11 +204,16 @@ pages:
|
|||||||
- UCsy9I56PY3IngCf_VGjunMQ # Zeihan
|
- UCsy9I56PY3IngCf_VGjunMQ # Zeihan
|
||||||
- UCC3ehuUksTyQ7bbjGntmx3Q #Perun
|
- UCC3ehuUksTyQ7bbjGntmx3Q #Perun
|
||||||
|
|
||||||
# - name: Finance
|
- name: Wealth
|
||||||
# columns:
|
columns:
|
||||||
# - size: small
|
- size: full
|
||||||
# widgets:
|
widgets:
|
||||||
# - type: calendar
|
- type: group
|
||||||
|
widgets:
|
||||||
|
- type: reddit
|
||||||
|
subreddit: realestateinvesting
|
||||||
|
limit: 20
|
||||||
|
sort-by: top
|
||||||
|
|
||||||
|
|
||||||
# - name: Well-Being
|
# - name: Well-Being
|
||||||
|
|||||||
6
n8n/.env
Normal file
6
n8n/.env
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
POSTGRES_USER=admin
|
||||||
|
POSTGRES_PASSWORD=password
|
||||||
|
POSTGRES_DB=n8n
|
||||||
|
|
||||||
|
POSTGRES_NON_ROOT_USER=geezo
|
||||||
|
POSTGRES_NON_ROOT_PASSWORD=password
|
||||||
44
n8n/docker-compose.yml
Normal file
44
n8n/docker-compose.yml
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
db_data:
|
||||||
|
n8n_data:
|
||||||
|
|
||||||
|
services:
|
||||||
|
postgres:
|
||||||
|
image: postgres:16
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER
|
||||||
|
- POSTGRES_PASSWORD
|
||||||
|
- POSTGRES_DB
|
||||||
|
- POSTGRES_NON_ROOT_USER
|
||||||
|
- POSTGRES_NON_ROOT_PASSWORD
|
||||||
|
volumes:
|
||||||
|
- db_data:/var/lib/postgresql/data
|
||||||
|
- ./init-data.sh:/docker-entrypoint-initdb.d/init-data.sh
|
||||||
|
healthcheck:
|
||||||
|
test: ['CMD-SHELL', 'pg_isready -h localhost -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
|
||||||
|
interval: 5s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 10
|
||||||
|
|
||||||
|
n8n:
|
||||||
|
image: docker.n8n.io/n8nio/n8n
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
- DB_TYPE=postgresdb
|
||||||
|
- DB_POSTGRESDB_HOST=postgres
|
||||||
|
- DB_POSTGRESDB_PORT=5432
|
||||||
|
- DB_POSTGRESDB_DATABASE=${POSTGRES_DB}
|
||||||
|
- DB_POSTGRESDB_USER=${POSTGRES_NON_ROOT_USER}
|
||||||
|
- DB_POSTGRESDB_PASSWORD=${POSTGRES_NON_ROOT_PASSWORD}
|
||||||
|
ports:
|
||||||
|
- 1012:5678
|
||||||
|
links:
|
||||||
|
- postgres
|
||||||
|
volumes:
|
||||||
|
- n8n_data:/home/node/.n8n
|
||||||
|
depends_on:
|
||||||
|
postgres:
|
||||||
|
condition: service_healthy
|
||||||
13
n8n/init-data.sh
Normal file
13
n8n/init-data.sh
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e;
|
||||||
|
|
||||||
|
|
||||||
|
if [ -n "${POSTGRES_NON_ROOT_USER:-}" ] && [ -n "${POSTGRES_NON_ROOT_PASSWORD:-}" ]; then
|
||||||
|
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
|
||||||
|
CREATE USER ${POSTGRES_NON_ROOT_USER} WITH PASSWORD '${POSTGRES_NON_ROOT_PASSWORD}';
|
||||||
|
GRANT ALL PRIVILEGES ON DATABASE ${POSTGRES_DB} TO ${POSTGRES_NON_ROOT_USER};
|
||||||
|
GRANT CREATE ON SCHEMA public TO ${POSTGRES_NON_ROOT_USER};
|
||||||
|
EOSQL
|
||||||
|
else
|
||||||
|
echo "SETUP INFO: No Environment variables given!"
|
||||||
|
fi
|
||||||
@ -11,17 +11,17 @@ services:
|
|||||||
- /home/geezo/media/youtube:/youtube
|
- /home/geezo/media/youtube:/youtube
|
||||||
- cache:/cache
|
- cache:/cache
|
||||||
environment:
|
environment:
|
||||||
- ES_URL=http://archivist-es:9200 # needs protocol e.g. http and port
|
- ES_URL=http://archivist-es:9200 # needs protocol e.g. http and port
|
||||||
- REDIS_HOST=archivist-redis # don't add protocol
|
- REDIS_HOST=archivist-redis # don't add protocol
|
||||||
- HOST_UID=1000
|
- HOST_UID=1000
|
||||||
- HOST_GID=1000
|
- HOST_GID=1000
|
||||||
- TA_HOST=http://theocorp:1011 # set your host name
|
- TA_HOST=http://theocorp:1011 # set your host name
|
||||||
- TA_USERNAME=geezo # your initial TA credentials
|
- TA_USERNAME=geezo # your initial TA credentials
|
||||||
- TA_PASSWORD=verysecret # your initial TA credentials
|
- TA_PASSWORD=verysecret # your initial TA credentials
|
||||||
- ELASTIC_PASSWORD=verysecret # set password for Elasticsearch
|
- ELASTIC_PASSWORD=verysecret # set password for Elasticsearch
|
||||||
- TZ=America/New_York # set your time zone
|
- TZ=America/New_York # set your time zone
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
|
test: [ "CMD", "curl", "-f", "http://localhost:8000/health" ]
|
||||||
interval: 2m
|
interval: 2m
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
@ -40,11 +40,11 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- archivist-es
|
- archivist-es
|
||||||
archivist-es:
|
archivist-es:
|
||||||
image: bbilly1/tubearchivist-es # only for amd64, or use official es 8.16.0
|
image: bbilly1/tubearchivist-es # only for amd64, or use official es 8.16.0
|
||||||
container_name: archivist-es
|
container_name: archivist-es
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- "ELASTIC_PASSWORD=verysecret" # matching Elasticsearch password
|
- "ELASTIC_PASSWORD=verysecret" # matching Elasticsearch password
|
||||||
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
|
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
|
||||||
- "xpack.security.enabled=true"
|
- "xpack.security.enabled=true"
|
||||||
- "discovery.type=single-node"
|
- "discovery.type=single-node"
|
||||||
@ -54,11 +54,11 @@ services:
|
|||||||
soft: -1
|
soft: -1
|
||||||
hard: -1
|
hard: -1
|
||||||
volumes:
|
volumes:
|
||||||
- es:/usr/share/elasticsearch/data # check for permission error when using bind mount, see readme
|
- es:/usr/share/elasticsearch/data # check for permission error when using bind mount, see readme
|
||||||
expose:
|
expose:
|
||||||
- "9200"
|
- "9200"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
cache:
|
cache:
|
||||||
redis:
|
redis:
|
||||||
es:
|
es:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user