-
-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
Description
Problem
docker-compose.yml has no resource limits, security hardening, or production-readiness features:
- No memory/CPU limits — any container can consume all host resources
- RedisInsight UI (port 8001) exposed without auth — data leak risk
- All services on single flat network — no isolation between data/app layers
- No log rotation config — Docker json-file driver will fill disk
- No backup strategy for PostgreSQL volumes
- Containers run as root — backend/SLM Dockerfiles don't create non-root user
Expected Fix
# Resource limits example
deploy:
resources:
limits:
memory: 2G
cpus: '2.0'
# Non-root user
RUN useradd -r -s /bin/false autobot
USER autobot
# Log rotation
logging:
driver: json-file
options:
max-size: "50m"
max-file: "5"Discovered During
Working on #1809 Docker containerization.
Reactions are currently unavailable