added docs and container (podman + docker) setup

This commit is contained in:
2025-10-13 01:28:52 +02:00
parent 67cca9854f
commit 1cccb4e603
16 changed files with 1918 additions and 5 deletions

43
assets/.compose Normal file
View File

@@ -0,0 +1,43 @@
version: '3.8'
services:
argparse-builder:
build:
context: .
dockerfile: Dockerfile
container_name: argparse-builder
ports:
- "8080:8080"
restart: unless-stopped
# Resource limits
deploy:
resources:
limits:
cpus: '0.5'
memory: 128M
reservations:
cpus: '0.1'
memory: 32M
# Security
read_only: true
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
# Health check
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:8080/ || exit 1"]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
# Logging
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"