Files
hive/push-images.sh
anthonyrawlins 39539ded40 Deploy Hive to Docker Swarm with Docker Hub images
- Created swarm-compatible docker-compose.swarm.yml
- Pushed images to Docker Hub (anthonyrawlins/hive-backend, anthonyrawlins/hive-frontend)
- Configured Traefik labels for SSL and routing
- Removed local volume mounts for swarm compatibility
- Added deployment scripts for automation

Infrastructure status:
-  PostgreSQL database running (1/1)
-  Redis cache running (1/1)
-  Prometheus metrics running (1/1)
-  Grafana dashboard running (1/1)
- 🔄 Backend/Frontend services deploying

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-07 22:04:01 +10:00

27 lines
828 B
Bash
Executable File

#!/bin/bash
# Push Hive images to local registry for swarm deployment
set -e
REGISTRY="anthonyrawlins"
BACKEND_IMAGE="hive-backend"
FRONTEND_IMAGE="hive-frontend"
LOCAL_BACKEND="hive-hive-backend"
LOCAL_FRONTEND="hive-hive-frontend"
echo "🏗️ Building and pushing Hive images to Docker Hub..."
# Tag and push backend
echo "📦 Pushing backend image..."
docker tag ${LOCAL_BACKEND}:latest ${REGISTRY}/${BACKEND_IMAGE}:latest
docker push ${REGISTRY}/${BACKEND_IMAGE}:latest
# Tag and push frontend
echo "📦 Pushing frontend image..."
docker tag ${LOCAL_FRONTEND}:latest ${REGISTRY}/${FRONTEND_IMAGE}:latest
docker push ${REGISTRY}/${FRONTEND_IMAGE}:latest
echo "✅ Images pushed to Docker Hub successfully!"
echo "Backend: ${REGISTRY}/${BACKEND_IMAGE}:latest"
echo "Frontend: ${REGISTRY}/${FRONTEND_IMAGE}:latest"