Skip to content

Commit 2795833

Browse files
committed
Refactor Docker commands to use 'docker compose' syntax instead of 'docker-compose'
1 parent 0848461 commit 2795833

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/test-legacy-method.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,12 @@ jobs:
113113
fi
114114
115115
# Check docker-compose status first
116-
if docker-compose -f docker-compose.generated.yml ps | grep -q "Up"; then
116+
if docker compose -f docker-compose.generated.yml ps | grep -q "Up"; then
117117
echo "✅ Docker-compose shows containers running"
118118
((status_success++))
119119
else
120120
echo "❌ Docker-compose shows no running containers"
121-
docker-compose -f docker-compose.generated.yml ps
121+
docker compose -f docker-compose.generated.yml ps
122122
fi
123123
124124
# Check docker ps for our containers

manage-clients.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ function start_instances() {
8080

8181
# Build the image first
8282
echo "Building Docker image..."
83-
docker-compose -f docker-compose.generated.yml build
83+
docker compose -f docker-compose.generated.yml build
8484

8585
# Start all instances
86-
docker-compose -f docker-compose.generated.yml up -d
86+
docker compose -f docker-compose.generated.yml up -d
8787

8888
echo ""
8989
echo "Instances started! Access them via:"
@@ -99,9 +99,9 @@ function stop_instances() {
9999

100100
# Use the generated compose file if it exists, otherwise try the original
101101
if [ -f "docker-compose.generated.yml" ]; then
102-
docker-compose -f docker-compose.generated.yml down
102+
docker compose -f docker-compose.generated.yml down
103103
else
104-
docker-compose --profile multi down
104+
docker compose --profile multi down
105105
fi
106106

107107
echo "All instances stopped."

0 commit comments

Comments
 (0)