All checks were successful
Test / check (push) Successful in 14s
asxpio-ops moves to NixOS, where containers run under Podman. Podman ignores the HEALTHCHECK of OCI-format images, which is what kaniko pushes, so the container would never report "healthy" and the deploy, which waits for exactly that, would time out. Copy the image's healthcheck into the compose file. Under Docker, which reads it from the image today, nothing changes. Assisted-by: Claude:opus-5-5
29 lines
945 B
YAML
29 lines
945 B
YAML
services:
|
|
blog:
|
|
# Image will be dynamically updated during deployment
|
|
# Format: registry.example.com/user/blog:sha_tag
|
|
build: .
|
|
image: blog:latest
|
|
container_name: blog
|
|
# Same as the image HEALTHCHECK. Podman ignores HEALTHCHECK in OCI-format
|
|
# images (what kaniko pushes), and the deploy waits for "healthy".
|
|
healthcheck:
|
|
test: ["CMD-SHELL","wget -qO /dev/null http://127.0.0.1/ || exit 1"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
start_period: 5s
|
|
retries: 3
|
|
restart: unless-stopped
|
|
networks:
|
|
- traefik
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.blog.rule=Host(`blog.asxp.io`)"
|
|
- "traefik.http.routers.blog.entrypoints=websecure"
|
|
- "traefik.http.routers.blog.tls=true"
|
|
- "traefik.http.routers.blog.tls.certresolver=letsencrypt"
|
|
- "traefik.http.services.blog.loadbalancer.server.port=80"
|
|
|
|
networks:
|
|
traefik:
|
|
external: true
|