Container
Available Images
Section titled “Available Images”Docker Hub
Section titled “Docker Hub”secanis/tlscheck-api
podman run --rm -p 3000:3000 secanis/tlscheck-apiGitHub Container Registry
Section titled “GitHub Container Registry”ghcr.io/secanis/tlscheck-api
podman run --rm -p 3000:3000 ghcr.io/secanis/tlscheck-apiQuick Start
Section titled “Quick Start”podman run --rm -p 3000:3000 tlscheck/apiRecommended: Read-Only Container
Section titled “Recommended: Read-Only Container”For enhanced security, run the container with a read-only filesystem:
podman run --read-only --tmpfs /tmp --rm -p 3000:3000 tlscheck/apiThis prevents any writes to the container filesystem, with /tmp mounted as a tmpfs.
Building the Image
Section titled “Building the Image”podman build -t tlscheck/api .Environment Variables
Section titled “Environment Variables”Pass environment variables using -e:
podman run --rm -e PORT=8080 -e LOG_LEVEL=debug -p 8080:3000 tlscheck/apiSee Configuration for all available options.
Volume Mounts
Section titled “Volume Mounts”No volumes are required. The container is self-contained.
Health Check
Section titled “Health Check”The image includes a built-in health check:
podman run --rm -p 3000:3000 tlscheck/api# Check healthcurl http://localhost:3000/healthSecurity Features
Section titled “Security Features”The container runs as a non-root user by default:
- User:
app(UID 1001) - Group:
appgroup(GID 1001)
Docker Compose Example
Section titled “Docker Compose Example”version: '3.8'
services: tlscheck: image: tlscheck/api ports: - "3000:3000" environment: - PORT=3000 - LOG_LEVEL=info - CACHE_TTL_MS=1800000 - REVOCATION_MODE=ocsp security_opt: - no-new-privileges:true read_only: true tmpfs: - /tmp:size=64m restart: unless-stoppedProduction Deployment
Section titled “Production Deployment”For production, consider:
- Use a reverse proxy (nginx, Caddy, traefik)
- Enable HTTPS for the API
- Set appropriate
CACHE_TTL_MSfor your traffic - Monitor logs via
LOG_LEVEL=info(default) - Configure rate limiting via
RATE_LIMIT_MAXandRATE_LIMIT_WINDOW_MS