This commit is contained in:
Oliver
2025-09-26 16:27:40 -03:00
parent ac8f70d368
commit bb271b8d71
15 changed files with 199 additions and 48 deletions

15
start
View File

@@ -1,2 +1,15 @@
#!/bin/bash
docker compose run alpine /bin/bash
SERVICE_NAME="alpine"
# Check if the container is running
RUNNING=$(docker compose ps -q $SERVICE_NAME)
if [ -z "$RUNNING" ]; then
echo "Container not running. Starting..."
docker compose up -d $SERVICE_NAME
fi
# Connect to the running container
docker compose exec -it $SERVICE_NAME sh