mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 15:51:01 +08:00
20 lines
544 B
YAML
Executable File
20 lines
544 B
YAML
Executable File
services:
|
|
newsanalyze-service:
|
|
image: ghcr.io/hpware/news-analyze:latest
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
|
|
interval: 1m
|
|
timeout: 10s
|
|
retries: 3
|
|
networks:
|
|
- app-network
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.newsanalyze.rule=Host(`news.yuanhau.com`)"
|
|
- "traefik.http.routers.newsanalyze.entrypoints=webinternal"
|
|
- "traefik.http.services.newsanalyze.loadbalancer.server.port=3000"
|
|
|
|
networks:
|
|
web:
|
|
external: true
|