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

49
compose.yml Normal file
View File

@@ -0,0 +1,49 @@
version: "3"
services:
argparse-builder:
build:
context: .
dockerfile: assets/Containerfile
container_name: argparse-builder
ports:
- "8080:8080"
restart: unless-stopped
# SELinux
security_opt:
- label=type:container_t
- no-new-privileges:true
# Security
read_only: true
cap_drop:
- ALL
# Resources
deploy:
resources:
limits:
cpus: "0.5"
memory: 128M
reservations:
cpus: "0.1"
memory: 32M
# Health
healthcheck:
test:
[
"CMD-SHELL",
"wget --no-verbose --tries=1 --spider http://localhost:8080/health || exit 1",
]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
# Logging
logging:
driver: journald
options:
tag: argparse-builder