news #1
@@ -204,8 +204,8 @@ services:
|
||||
build: ./frontend
|
||||
container_name: munich-news-frontend
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3000:3000"
|
||||
# ports:
|
||||
# - "3000:3000"
|
||||
# Traefik Configuration (commented out - uncomment when using Traefik)
|
||||
# Remove port exposure when using Traefik
|
||||
# ports:
|
||||
@@ -217,11 +217,25 @@ services:
|
||||
- backend
|
||||
networks:
|
||||
- munich-news-network
|
||||
- proxy
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3000"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.docker.network=proxy
|
||||
- traefik.http.routers.news.entrypoints=http
|
||||
- traefik.http.routers.news.rule=Host(`news.dongho.kim`)
|
||||
- traefik.http.middlewares.news-redirect.redirectscheme.permanent=true
|
||||
- traefik.http.middlewares.news-redirect.redirectscheme.scheme=https
|
||||
- traefik.http.routers.news.middlewares=news-redirect
|
||||
- traefik.http.routers.news-secure.entrypoints=https
|
||||
- traefik.http.routers.news-secure.rule=Host(`news.dongho.kim`)
|
||||
- traefik.http.routers.news-secure.tls=true
|
||||
- traefik.http.routers.news-secure.tls.certresolver=cloudflare
|
||||
- traefik.http.services.news-secure-service.loadbalancer.server.port=2283
|
||||
|
||||
volumes:
|
||||
mongodb_data:
|
||||
@@ -233,4 +247,6 @@ volumes:
|
||||
|
||||
networks:
|
||||
munich-news-network:
|
||||
driver: bridge
|
||||
internal: true
|
||||
proxy:
|
||||
external: true
|
||||
Reference in New Issue
Block a user