Files
ascii-art-app/docker-compose.yml
rmancinasandClaude Fable 5 fdd7f9d751
Build and Deploy / Build Image (push) Successful in 31s
Build and Deploy / Deploy to Portainer (push) Successful in 5s
fix: healthcheck used curl, absent in python:3.11-slim
Container was killed as unhealthy (exit 137) on every start.
Use python urllib for the healthcheck instead.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-11 21:31:38 -07:00

19 lines
450 B
YAML

version: '3.8'
services:
ascii-art-app:
image: ${IMAGE:-git.mancinas.io/rmancinas/ascii-art-app:latest}
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
ports:
- "8182:5000"
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:5000/')"]
interval: 30s
timeout: 10s
retries: 3