Skip to content

Commit

Permalink
Update docker compose version to the next one (make github actions ha…
Browse files Browse the repository at this point in the history
…ppy)
  • Loading branch information
campos20 committed Sep 23, 2024
1 parent 921ce2f commit 42f8622
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/backtest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Run containers
run: docker-compose -f server/docker-compose-test.yaml up -d
run: docker compose -f server/docker-compose-test.yaml up -d
- name: Wait for database to start
run: |
for i in `seq 1 60`;
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ source server/get_db_export.sh

- Run docker

`docker-compose up`
`docker compose up`

## Generate all statistics

Expand Down
8 changes: 4 additions & 4 deletions server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

### Using docker

If you are in the root folder, you can just run `docker-compose up -d`. This will spin up an empty MySQL database running on port 3306, it will also download the latest WCA dump and apply it for you.
If you are in the root folder, you can just run `docker compose up -d`. This will spin up an empty MySQL database running on port 3306, it will also download the latest WCA dump and apply it for you.

### Your own local copy of WCA's database

Expand Down Expand Up @@ -60,7 +60,7 @@ This backend project uses integration tests so we need to actually connect to a

- Preparing the database for tests (from the repository root)

`docker-compose -f server/docker-compose-test.yaml up -d`
`docker compose -f server/docker-compose-test.yaml up -d`

This will start the database (port 3307) and also a mocked version of the WCA's api (for getting user info) on port 3500.

Expand All @@ -73,8 +73,8 @@ In a new terminal, from the repository root, run
- If you need to change migrations, run

```
docker-compose -f server/docker-compose-test.yaml down --volumes
docker-compose -f server/docker-compose-test.yaml up -d
docker compose -f server/docker-compose-test.yaml down --volumes
docker compose -f server/docker-compose-test.yaml up -d
```

## Code format
Expand Down

0 comments on commit 42f8622

Please sign in to comment.