Enhance Docker and backend configurations for improved deployment

- Updated docker-compose.yml to include environment variable support for services, enhancing flexibility in configuration.
- Refactored Dockerfile to utilize build arguments for VITE environment variables, allowing for better customization during builds.
- Improved Nginx configuration to handle larger video uploads by increasing client_max_body_size to 5GB.
- Enhanced backend Dockerfile to include wget for health checks and improved startup logging for database migrations.
- Added validation for critical environment variables in the backend to ensure necessary configurations are present before application startup.
- Updated content streaming logic to support direct HLS URL construction, improving streaming reliability and user experience.
- Refactored various components and services to streamline access checks and improve error handling during content playback.
This commit is contained in:
Dorian
2026-02-13 12:35:03 +00:00
parent 7e9a35a963
commit 3ca43b62e4
23 changed files with 799 additions and 244 deletions

View File

@@ -65,7 +65,7 @@ cleanup() {
# Stop Docker infrastructure (if we used Docker)
if [ "$SKIP_DOCKER" = false ] && command -v docker &>/dev/null; then
echo -e "${CYAN}Stopping Docker services...${NC}"
docker compose -f "$ROOT_DIR/docker-compose.yml" stop postgres redis minio minio-init mailpit 2>/dev/null || true
docker compose -f "$ROOT_DIR/docker-compose.dev.yml" stop postgres redis minio minio-init mailpit 2>/dev/null || true
fi
# Kill anything still on relay port
@@ -198,12 +198,12 @@ if [ "$SKIP_DOCKER" = true ] || [ "$HAS_DOCKER" = false ]; then
else
echo -e "${CYAN}[1/4] Starting Docker infrastructure...${NC}"
docker compose -f "$ROOT_DIR/docker-compose.yml" up -d \
docker compose -f "$ROOT_DIR/docker-compose.dev.yml" up -d \
postgres redis minio minio-init mailpit 2>&1 | prefix_output "docker" "$CYAN"
echo -e "${CYAN} Waiting for Postgres...${NC}"
for i in $(seq 1 30); do
if docker compose -f "$ROOT_DIR/docker-compose.yml" exec -T postgres pg_isready -U indeedhub -q 2>/dev/null; then
if docker compose -f "$ROOT_DIR/docker-compose.dev.yml" exec -T postgres pg_isready -U indeedhub -q 2>/dev/null; then
echo -e "${GREEN} Postgres is ready.${NC}"
break
fi