#!/bin/bash # Make the script executable with: chmod +x deploy.sh echo "=== AB for Abortion Website Deployment ===" echo "Directory structure:" echo " - website/ - Contains all website files" echo " - nginx.conf - Web server configuration" echo " - docker-compose.yml - Docker configuration" echo "========================================" # Stop running containers echo "Stopping any running containers..." docker-compose down # Pull the latest nginx image echo "Pulling latest nginx:alpine image..." docker-compose pull # Start containers in detached mode echo "Starting containers..." docker-compose up -d # Display container status echo "Container status:" docker-compose ps echo "Deployment complete! The website should be accessible at http://localhost"