Merge pull request #16845 from overleaf/csh-docker-compose

Replace legacy `docker-compose` with `docker compose`

GitOrigin-RevId: 1a876a5870be55dceecdff9cd1284235840e908f
This commit is contained in:
Christopher Hoskin
2024-01-31 13:42:45 +00:00
committed by Copybot
parent 2a7e06ea07
commit af32433bfa
23 changed files with 27 additions and 27 deletions

View File

@@ -1,3 +1,3 @@
#!/usr/bin/env bash
docker-compose build --pull "$@"
docker compose build --pull "$@"

View File

@@ -1,3 +1,3 @@
#!/usr/bin/env bash
docker-compose down "$@"
docker compose down "$@"

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
docker-compose up --detach mongo
docker compose up --detach mongo
curl --max-time 10 --retry 5 --retry-delay 5 --retry-all-errors --silent --output /dev/null localhost:27017
docker-compose exec mongo mongosh --eval "rs.initiate({ _id: 'overleaf', members: [{ _id: 0, host: 'mongo:27017' }] })"
docker-compose down mongo
docker compose exec mongo mongosh --eval "rs.initiate({ _id: 'overleaf', members: [{ _id: 0, host: 'mongo:27017' }] })"
docker compose down mongo

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
docker-compose logs --follow --tail 10 --no-color "$@" \
docker compose logs --follow --tail 10 --no-color "$@" \
| ggrep --line-buffered --invert-match "global.gc" \
| ggrep --line-buffered --invert-match "health.check" \
| ggrep --line-buffered --invert-match "slow event loop" \

View File

@@ -1,3 +1,3 @@
#!/usr/bin/env bash
docker-compose exec -it "$@" /bin/bash
docker compose exec -it "$@" /bin/bash

View File

@@ -1,3 +1,3 @@
#!/usr/bin/env bash
docker-compose up --detach "$@"
docker compose up --detach "$@"