Fix Docker Compose command syntax
- Replace deprecated 'docker-compose' with modern 'docker compose' - Update all workflow files to use new syntax - Update documentation with correct commands - Fixes 'command not found' error in CI/CD pipeline - Compatible with Docker Compose V2 and newer versions
This commit is contained in:
@@ -81,7 +81,7 @@ jobs:
|
||||
|
||||
- name: Stop existing services
|
||||
run: |
|
||||
docker-compose down || true
|
||||
docker compose down || true
|
||||
|
||||
- name: Verify secrets and variables before deployment
|
||||
run: |
|
||||
@@ -119,7 +119,7 @@ jobs:
|
||||
|
||||
- name: Start services with Docker Compose
|
||||
run: |
|
||||
docker-compose up -d
|
||||
docker compose up -d
|
||||
env:
|
||||
NODE_ENV: ${{ vars.NODE_ENV }}
|
||||
LOG_LEVEL: ${{ vars.LOG_LEVEL }}
|
||||
|
||||
Reference in New Issue
Block a user