Some checks failed
CI / Lint & Format (push) Failing after 16s
CI / Unit Tests (push) Has been skipped
CI / Memory Leak Check (push) Has been skipped
CI / SBOM Generation (push) Has been skipped
CI / Security Scan (push) Successful in 20s
CI / Security Tests (push) Has been skipped
CI / Advanced Security Tests (push) Has been skipped
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
# FlaskPaste Container Compose
|
|
# Usage: podman-compose up -d
|
|
# Or: podman compose up -d
|
|
|
|
services:
|
|
flaskpaste:
|
|
build:
|
|
context: .
|
|
dockerfile: Containerfile
|
|
container_name: flaskpaste
|
|
restart: unless-stopped
|
|
ports:
|
|
- "5001:5000"
|
|
volumes:
|
|
- flaskpaste-data:/app/data
|
|
environment:
|
|
- FLASK_ENV=production
|
|
- FLASKPASTE_URL_PREFIX=/paste # HAProxy strips this before forwarding
|
|
- FLASKPASTE_EXPIRY=432000 # 5 days
|
|
- FLASKPASTE_MAX_ANON=3145728 # 3 MiB
|
|
- FLASKPASTE_MAX_AUTH=52428800 # 50 MiB
|
|
- FLASKPASTE_PKI_ENABLED=1
|
|
- FLASKPASTE_PKI_CA_PASSWORD=${FLASKPASTE_PKI_CA_PASSWORD:-}
|
|
- FLASKPASTE_REGISTER_POW=0 # Disable PoW for testing
|
|
healthcheck:
|
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:5000/health')"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 5s
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '1.0'
|
|
memory: 256M
|
|
reservations:
|
|
cpus: '0.25'
|
|
memory: 64M
|
|
|
|
volumes:
|
|
flaskpaste-data:
|
|
driver: local
|