fix: Update deployment script to use modern docker compose command

- Replace deprecated docker-compose with docker compose
- Add package-lock.json files for backend and frontend
- Fix npm ci deployment errors

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-07-22 17:37:48 +02:00
parent 53de1f6bff
commit 0d24b45b79
3 changed files with 25920 additions and 19 deletions
+6948
View File
File diff suppressed because it is too large Load Diff
+18954
View File
File diff suppressed because it is too large Load Diff
+18 -19
View File
@@ -33,7 +33,6 @@ check_command() {
echo "Checking prerequisites..." echo "Checking prerequisites..."
check_command docker check_command docker
check_command docker-compose
check_command mc check_command mc
echo -e "${GREEN}✓ All prerequisites installed${NC}" echo -e "${GREEN}✓ All prerequisites installed${NC}"
@@ -48,7 +47,7 @@ fi
echo "" echo ""
echo "Deployment Options" echo "Deployment Options"
echo "==================" echo "=================="
echo "1. Quick deployment (docker-compose)" echo "1. Quick deployment (docker compose)"
echo "2. Production deployment with SSL" echo "2. Production deployment with SSL"
echo "3. Update existing deployment" echo "3. Update existing deployment"
echo "4. Stop deployment" echo "4. Stop deployment"
@@ -62,8 +61,8 @@ case $DEPLOY_OPTION in
echo "============================" echo "============================"
# Build and start containers # Build and start containers
docker-compose build docker compose build
docker-compose up -d docker compose up -d
echo "" echo ""
echo -e "${GREEN}✓ Deployment completed!${NC}" echo -e "${GREEN}✓ Deployment completed!${NC}"
@@ -72,7 +71,7 @@ case $DEPLOY_OPTION in
echo "- Frontend: http://localhost" echo "- Frontend: http://localhost"
echo "- Backend API: http://localhost:3000" echo "- Backend API: http://localhost:3000"
echo "" echo ""
docker-compose ps docker compose ps
;; ;;
2) 2)
@@ -136,10 +135,10 @@ case $DEPLOY_OPTION in
# Build and start with proxy profile # Build and start with proxy profile
echo "Building containers..." echo "Building containers..."
docker-compose build docker compose build
echo "Starting services..." echo "Starting services..."
docker-compose --profile proxy up -d docker compose --profile proxy up -d
echo "" echo ""
echo -e "${GREEN}✓ Production deployment completed!${NC}" echo -e "${GREEN}✓ Production deployment completed!${NC}"
@@ -148,7 +147,7 @@ case $DEPLOY_OPTION in
echo "- HTTPS: https://localhost" echo "- HTTPS: https://localhost"
echo "- HTTP (redirects to HTTPS): http://localhost" echo "- HTTP (redirects to HTTPS): http://localhost"
echo "" echo ""
docker-compose ps docker compose ps
;; ;;
3) 3)
@@ -164,16 +163,16 @@ case $DEPLOY_OPTION in
# Rebuild containers # Rebuild containers
echo "Rebuilding containers..." echo "Rebuilding containers..."
docker-compose build docker compose build
# Restart services # Restart services
echo "Restarting services..." echo "Restarting services..."
docker-compose down docker compose down
docker-compose up -d docker compose up -d
echo "" echo ""
echo -e "${GREEN}✓ Update completed!${NC}" echo -e "${GREEN}✓ Update completed!${NC}"
docker-compose ps docker compose ps
;; ;;
4) 4)
@@ -181,7 +180,7 @@ case $DEPLOY_OPTION in
echo "Stopping deployment..." echo "Stopping deployment..."
echo "====================" echo "===================="
docker-compose down docker compose down
echo "" echo ""
echo -e "${GREEN}✓ Services stopped${NC}" echo -e "${GREEN}✓ Services stopped${NC}"
@@ -200,15 +199,15 @@ if [[ "$VIEW_LOGS" =~ ^[Yy]$ ]]; then
echo "" echo ""
echo "Showing logs (Ctrl+C to exit)..." echo "Showing logs (Ctrl+C to exit)..."
echo "================================" echo "================================"
docker-compose logs -f docker compose logs -f
fi fi
echo "" echo ""
echo "Deployment script completed!" echo "Deployment script completed!"
echo "" echo ""
echo "Useful commands:" echo "Useful commands:"
echo "- View logs: docker-compose logs -f" echo "- View logs: docker compose logs -f"
echo "- View specific service: docker-compose logs -f backend" echo "- View specific service: docker compose logs -f backend"
echo "- Restart services: docker-compose restart" echo "- Restart services: docker compose restart"
echo "- Stop services: docker-compose down" echo "- Stop services: docker compose down"
echo "- Remove everything: docker-compose down -v" echo "- Remove everything: docker compose down -v"