Rename container to app-1440-news
This commit is contained in:
+11
-11
@@ -1,7 +1,7 @@
|
||||
services:
|
||||
1440-news:
|
||||
app-1440-news:
|
||||
build: .
|
||||
container_name: 1440-news
|
||||
container_name: app-1440-news
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./feeds:/app/feeds
|
||||
@@ -11,20 +11,20 @@ services:
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
# Production: HTTPS with Let's Encrypt
|
||||
- "traefik.http.routers.1440-news.rule=Host(`1440.news`)"
|
||||
- "traefik.http.routers.1440-news.entrypoints=https"
|
||||
- "traefik.http.routers.1440-news.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.routers.app-1440-news.rule=Host(`1440.news`)"
|
||||
- "traefik.http.routers.app-1440-news.entrypoints=https"
|
||||
- "traefik.http.routers.app-1440-news.tls.certresolver=letsencrypt"
|
||||
# Production: HTTP to HTTPS redirect
|
||||
- "traefik.http.routers.1440-news-redirect.rule=Host(`1440.news`)"
|
||||
- "traefik.http.routers.1440-news-redirect.entrypoints=http"
|
||||
- "traefik.http.routers.1440-news-redirect.middlewares=https-redirect"
|
||||
- "traefik.http.routers.app-1440-news-redirect.rule=Host(`1440.news`)"
|
||||
- "traefik.http.routers.app-1440-news-redirect.entrypoints=http"
|
||||
- "traefik.http.routers.app-1440-news-redirect.middlewares=https-redirect"
|
||||
- "traefik.http.middlewares.https-redirect.redirectscheme.scheme=https"
|
||||
- "traefik.http.middlewares.https-redirect.redirectscheme.permanent=true"
|
||||
# Local development: HTTP only
|
||||
- "traefik.http.routers.1440-news-local.rule=Host(`1440.localhost`)"
|
||||
- "traefik.http.routers.1440-news-local.entrypoints=http"
|
||||
- "traefik.http.routers.app-1440-news-local.rule=Host(`1440.localhost`)"
|
||||
- "traefik.http.routers.app-1440-news-local.entrypoints=http"
|
||||
# Shared service
|
||||
- "traefik.http.services.1440-news.loadbalancer.server.port=4321"
|
||||
- "traefik.http.services.app-1440-news.loadbalancer.server.port=4321"
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
|
||||
Reference in New Issue
Block a user