Rename dashboard to watcher

- Container: atproto-1440news-watcher
- Endpoints: dashboard.1440.news and watcher.1440.news (alias)
- Updated Dockerfile and docker-compose.yml
- Updated go.mod module name
This commit is contained in:
primal
2026-02-02 13:26:36 -05:00
parent 5ecb5b5ed7
commit 81c92b5b51
7 changed files with 1364 additions and 22 deletions
+14 -14
View File
@@ -1,10 +1,10 @@
services:
dashboard:
watcher:
build:
context: ..
dockerfile: dashboard/Dockerfile
image: atproto-1440news-dashboard
container_name: atproto-1440news-dashboard
dockerfile: watcher/Dockerfile
image: atproto-1440news-watcher
container_name: atproto-1440news-watcher
restart: unless-stopped
stop_grace_period: 30s
env_file:
@@ -23,21 +23,21 @@ services:
- atproto
labels:
- "traefik.enable=true"
# Production: HTTPS with Let's Encrypt for dashboard.1440.news
- "traefik.http.routers.dashboard-1440.rule=Host(`dashboard.1440.news`)"
- "traefik.http.routers.dashboard-1440.entrypoints=https"
- "traefik.http.routers.dashboard-1440.tls.certresolver=letsencrypt-dns"
# Production: HTTPS for dashboard.1440.news and watcher.1440.news
- "traefik.http.routers.watcher-1440.rule=Host(`dashboard.1440.news`) || Host(`watcher.1440.news`)"
- "traefik.http.routers.watcher-1440.entrypoints=https"
- "traefik.http.routers.watcher-1440.tls.certresolver=letsencrypt-dns"
# Production: HTTP to HTTPS redirect
- "traefik.http.routers.dashboard-1440-redirect.rule=Host(`dashboard.1440.news`)"
- "traefik.http.routers.dashboard-1440-redirect.entrypoints=http"
- "traefik.http.routers.dashboard-1440-redirect.middlewares=https-redirect"
- "traefik.http.routers.watcher-1440-redirect.rule=Host(`dashboard.1440.news`) || Host(`watcher.1440.news`)"
- "traefik.http.routers.watcher-1440-redirect.entrypoints=http"
- "traefik.http.routers.watcher-1440-redirect.middlewares=https-redirect"
- "traefik.http.middlewares.https-redirect.redirectscheme.scheme=https"
- "traefik.http.middlewares.https-redirect.redirectscheme.permanent=true"
# Local development
- "traefik.http.routers.dashboard-1440-local.rule=Host(`dashboard.1440.localhost`)"
- "traefik.http.routers.dashboard-1440-local.entrypoints=http"
- "traefik.http.routers.watcher-1440-local.rule=Host(`dashboard.1440.localhost`) || Host(`watcher.1440.localhost`)"
- "traefik.http.routers.watcher-1440-local.entrypoints=http"
# Shared service
- "traefik.http.services.dashboard-1440.loadbalancer.server.port=4321"
- "traefik.http.services.watcher-1440.loadbalancer.server.port=4321"
secrets:
db_password: