fix: secure deploy API, remove Docker-in-Docker, add DB backup

- Add web+superadmin middleware to /api/deploy routes
- Return JSON 403 in EnsureUserIsSuperadmin for API requests
- Remove Docker CLI and docker.sock from app container
- Replace docker compose restart with supervisorctl
- Add mysqldump backup step before migrations
This commit is contained in:
F4ilji
2026-07-02 17:26:38 +05:00
parent 6ed11cab2d
commit 48ffd217b8
5 changed files with 39 additions and 26 deletions
-1
View File
@@ -36,7 +36,6 @@ services:
dockerfile: _docker/app/Dockerfile
volumes:
- ./:/var/www
- /var/run/docker.sock:/var/run/docker.sock
container_name: ntspi-php
restart: always
ports: