This commit is contained in:
geezo 2025-01-24 00:10:05 +00:00
parent 67d56d9e6d
commit 5b1b7a9ef4
5 changed files with 94 additions and 67 deletions

View File

@ -91,30 +91,9 @@ pages:
- type: reddit
subreddit: selfhosted
show-thumbnails: true
- type: reddit
subreddit: homeassistant
show-thumbnails: true
- type: reddit
subreddit: homeautomation
show-thumbnails: true
- type: reddit
subreddit: sideproject
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
- type: videos
channels:
@ -153,7 +132,7 @@ pages:
# - symbol: RDDT
# name: Reddit
- name: Entertainment
- name: PopCulture
columns:
- size: full
widgets:
@ -161,7 +140,6 @@ pages:
- type: videos
channels:
- UCnxQ8o9RpqxGF2oLHcCn9VQ # fantano
- UCgi2u-lGY-2i2ubLsUr6FbQ # FD Signifier
- UCQ86N3Ulc7yBuY4TZSWjaxA # [Deleted]
- type: group
widgets:
@ -178,43 +156,24 @@ pages:
- type: videos
channels:
- UCLuYADJ6hESLHX87JnsGbjA # Josh Joshnson
- name: BlackCulture
columns:
- size: full
widgets:
- type: group
widgets:
- type: reddit
subreddit: blackpeopletwitter
# - 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
- type: videos
channels:
- UCgi2u-lGY-2i2ubLsUr6FbQ # FD Signifier
- name: News
columns:
- size: small
widgets:
- type: calendar
- size: full
widgets:
- type: group
@ -245,11 +204,16 @@ pages:
- UCsy9I56PY3IngCf_VGjunMQ # Zeihan
- UCC3ehuUksTyQ7bbjGntmx3Q #Perun
# - name: Finance
# columns:
# - size: small
# widgets:
# - type: calendar
- name: Wealth
columns:
- size: full
widgets:
- type: group
widgets:
- type: reddit
subreddit: realestateinvesting
limit: 20
sort-by: top
# - name: Well-Being

6
n8n/.env Normal file
View 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
View 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
View 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