Merge pull request 'deploy sh4' (#9) from develop into test
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #9
This commit is contained in:
@@ -5,7 +5,6 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: bdc-api-prod
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./:/var/www/html
|
||||
|
||||
@@ -5,7 +5,6 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: bdc-api-test
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./:/var/www/html
|
||||
|
||||
@@ -43,10 +43,8 @@ chmod 2775 "$UPLOADS_DIR" 2>/dev/null || true
|
||||
docker compose -p "$COMPOSE_PROJECT" -f "$COMPOSE_FILE" down --remove-orphans || true
|
||||
docker compose -p "$COMPOSE_PROJECT" -f "$COMPOSE_FILE" up -d --build
|
||||
|
||||
echo "⏳ Container hazır olması bekleniyor..."
|
||||
for i in {1..30}; do
|
||||
if docker compose -p "$COMPOSE_PROJECT" -f "$COMPOSE_FILE" ps --status running | grep -q "$CONTAINER"; then
|
||||
echo "✅ Container ayakta"
|
||||
break
|
||||
fi
|
||||
if [ "$i" -eq 30 ]; then
|
||||
|
||||
Reference in New Issue
Block a user