mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
22 lines
689 B
YAML
Executable file
22 lines
689 B
YAML
Executable file
services:
|
|
newsanalyze-service:
|
|
image: ghcr.io/hpware/news-analyze:master
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
|
|
interval: 1m
|
|
timeout: 10s
|
|
retries: 3
|
|
networks:
|
|
- web
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.newsanalyze.rule=Host(`news.yuanhau.com`)"
|
|
- "traefik.http.routers.newsanalyze.entrypoints=websecure"
|
|
- "traefik.http.routers.newsanalyze.tls=true"
|
|
- "traefik.http.routers.newsanalyze.tls.certresolver=myresolver"
|
|
- "traefik.http.services.newsanalyze.loadbalancer.server.port=3000"
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
web:
|
|
external: true
|