homelab/bxl-shp/apps/docker-compose.blog.yaml

23 lines
698 B
YAML
Raw Normal View History

2024-01-19 13:38:55 +01:00
services:
blog:
container_name: blog
image: git.bhasher.com/bhasher/blog:latest
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.blog.rule=Host(`blog.bhasher.com`)"
- "traefik.http.routers.blog.entrypoints=internalsecure"
- "traefik.http.services.blog.loadbalancer.server.port=80"
- "traefik.http.routers.blog.tls=true"
- "traefik.http.routers.blog.tls.certresolver=http"
- "com.centurylinklabs.watchtower.enable=true"
healthcheck:
test: curl --fail http://localhost || exit 1
interval: 60s
start_period: 20s
start_interval: 5s
timeout: 10s
retries: 3
networks:
- external