Refactor swarm configuration: Add Glance service with Traefik labels and configuration

This commit is contained in:
2025-01-25 13:11:51 +08:00
parent 5388e9bca5
commit 4edb624a0c
3 changed files with 108 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
{
"makefile.configureOnOpen": false
}
+86
View File
@@ -0,0 +1,86 @@
- name: Markets
columns:
- size: small
widgets:
- type: markets
title: Indices
markets:
- symbol: SPY
name: S&P 500
- symbol: DX-Y.NYB
name: Dollar Index
- type: markets
title: Crypto
markets:
- symbol: BTC-USD
name: Bitcoin
- symbol: ETH-USD
name: Ethereum
- type: markets
title: Stocks
sort-by: absolute-change
markets:
- symbol: NVDA
name: NVIDIA
- symbol: AAPL
name: Apple
- symbol: MSFT
name: Microsoft
- symbol: GOOGL
name: Google
- symbol: AMD
name: AMD
- symbol: RDDT
name: Reddit
- symbol: AMZN
name: Amazon
- symbol: TSLA
name: Tesla
- symbol: INTC
name: Intel
- symbol: META
name: Meta
- size: full
widgets:
- type: rss
title: News
style: horizontal-cards
feeds:
- url: https://feeds.bloomberg.com/markets/news.rss
title: Bloomberg
- url: https://moxie.foxbusiness.com/google-publisher/markets.xml
title: Fox Business
- url: https://moxie.foxbusiness.com/google-publisher/technology.xml
title: Fox Business
- type: group
widgets:
- type: reddit
show-thumbnails: true
subreddit: technology
- type: reddit
show-thumbnails: true
subreddit: wallstreetbets
- type: videos
style: grid-cards
collapse-after-rows: 3
channels:
- UCvSXMi2LebwJEM1s4bz5IBA # New Money
- UCV6KDgJskWaEckne5aPA0aQ # Graham Stephan
- UCAzhpt9DmG6PnHXjmJTvRGQ # Federal Reserve
- size: small
widgets:
- type: rss
title: News
limit: 30
collapse-after: 13
feeds:
- url: https://www.ft.com/technology?format=rss
title: Financial Times
- url: https://feeds.a.dj.com/rss/RSSMarketsMain.xml
title: Wall Street Journal
+19
View File
@@ -15,6 +15,25 @@ services:
- traefik.http.routers.cyberchef.service=cyberchef
- traefik.http.services.cyberchef.loadbalancer.server.port=8000
glance:
image: glanceapp/glance
networks:
- traefik-public
volumes:
- /var/data/glance.yml:/app/glance.yml
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
deploy:
labels:
- traefik.enable=true
- traefik.swarm.network=traefik-public
- traefik.constraint-label=traefik-public
- traefik.http.routers.glance.entrypoints=https
- traefik.http.routers.glance.rule=Host(`home.${DOMAIN}`)
- traefik.http.routers.glance.tls.certresolver=le
- traefik.http.routers.glance.service=glance
- traefik.http.services.glance.loadbalancer.server.port=8080
librespeed:
# ghcr.io/librespeed/speedtest:latest
# lscr.io/linuxserver/librespeed:latest