NeXuS includes a hardened Docker Compose configuration at infrastructure/docker/docker-compose-HARDENED.yml with additional security measures.
nexus-internal only/health endpoints.env in .gitignore â Never committed to version controlservices:
api:
deploy:
resources:
limits:
cpus: '1.0'
memory: 512M
reservations:
cpus: '0.25'
memory: 128M
security_opt:
- no-new-privileges:true
read_only: true
tmpfs:
- /tmp
cap_drop:
- ALL
# PostgreSQL backup
docker exec nexus-postgres pg_dump -U seb nexus > backup.sql
# MongoDB backup
docker exec nexus-mongodb mongodump --username seb --password $MONGODB_PASSWORD --out /backup
# Redis backup (RDB snapshot)
docker exec nexus-redis redis-cli -a $REDIS_PASSWORD BGSAVE
# Backup all volumes
docker run --rm -v nexus_postgres_data:/data -v $(pwd):/backup \
alpine tar czf /backup/postgres-data.tar.gz /data