[Unit] Description=Pellet Price Tracker web service [Container] Image=localhost/pellet-price-tracker:latest Pull=never ContainerName=pellet-price-tracker-web EnvironmentFile=%E/pellet-price-tracker/environment Volume=pellet-price-tracker-data.volume:/data PublishPort=8000:8000 HealthCmd=["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health/ready')"] HealthInterval=30s HealthTimeout=5s HealthRetries=3 HealthOnFailure=kill NoNewPrivileges=true [Service] Restart=always RestartSec=5s TimeoutStopSec=30s [Install] WantedBy=default.target