mirror of
https://github.com/jonasrosland/gitmirror.git
synced 2025-05-10 11:55:34 +02:00
20 lines
No EOL
427 B
Bash
Executable file
20 lines
No EOL
427 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
echo "Stopping any running containers..."
|
|
docker-compose down
|
|
|
|
echo "Building Docker image with latest changes..."
|
|
docker-compose build
|
|
|
|
echo "Starting web container..."
|
|
docker-compose up -d web
|
|
|
|
echo "Container is now running!"
|
|
echo "Access the web UI at http://localhost:5000"
|
|
echo ""
|
|
echo "To view logs:"
|
|
echo "docker-compose logs -f web"
|
|
echo ""
|
|
echo "To stop the container:"
|
|
echo "docker-compose down" |