Skip to content

Commit

Permalink
chore: migrate from docker-compose v1 to docker compose v2
Browse files Browse the repository at this point in the history
  • Loading branch information
reakaleek committed Aug 5, 2024
1 parent 6aac723 commit fd32548
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ To run the application run the following command from the `opbeans` folder:
## Run locally
To run locally, including Server, Kibana and Elasticsearch, use the provided docker compose file by running the command
```bash
docker-compose up
docker compose up
```

## Run with Elastic Cloud
Expand All @@ -23,7 +23,7 @@ docker-compose up
2. Add environmental variable `STACK_VERSION` to match your deployed Elasticsearch version.
3. Run
```bash
docker-compose -f docker-compose-elastic-cloud.yml up
docker compose -f docker-compose-elastic-cloud.yml up
```

## Testing locally
Expand Down
6 changes: 3 additions & 3 deletions tests/tests.bats
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ CONTAINER="opbeans-java"

@test "build image" {
cd $BATS_TEST_DIRNAME/..
run docker-compose build
run docker compose build
assert_success
}

@test "create test container" {
run docker-compose up -d
run docker compose up -d
assert_success
}

Expand All @@ -32,6 +32,6 @@ CONTAINER="opbeans-java"
}

@test "clean test containers" {
run docker-compose down
run docker compose down
assert_success
}

0 comments on commit fd32548

Please sign in to comment.