Skip to content

Commit 500e1b3

Browse files
authored
fix: Switch to new compose tool (serverpod#276)
1 parent ddf09fe commit 500e1b3

File tree

45 files changed

+62
-62
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+62
-62
lines changed

docs/01-get-started/03-working-with-the-database.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ First, we need to start the server and apply the migrations by adding the `--app
422422

423423
```bash
424424
$ cd magic_recipe/magic_recipe_server
425-
$ docker-compose up -d
425+
$ docker compose up -d
426426
$ dart bin/main.dart --apply-migrations
427427
```
428428

docs/06-concepts/11-authentication/01-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ $ serverpod create-migration
6060
Start your database container from the server project.
6161

6262
```bash
63-
$ docker-compose up --build --detach
63+
$ docker compose up --build --detach
6464
```
6565

6666
Then apply the migration by starting the server with the `apply-migrations` flag.

docs/06-concepts/19-testing/01-get-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ The location of the test tools can be changed by changing the `server_test_tool
213213
Before the test can be run the Postgres and Redis also have to be started:
214214

215215
```bash
216-
docker-compose up --build --detach
216+
docker compose up --build --detach
217217
```
218218

219219
Now the test is ready to be run:

docs/08-upgrading/02-upgrade-to-one-point-two.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ If it is not important to preserve the data that is in your database, you can si
203203
In a Serverpod development project, the database is hosted in a docker container. To remove the existing database and start a new one run the following commands:
204204

205205
```bash
206-
$ docker-compose down -v
207-
$ docker-compose up --build --detach
206+
$ docker compose down -v
207+
$ docker compose up --build --detach
208208
```
209209

210210
The command first removes the running container along with its volume and the second command starts a new database from scratch.

docs/08-upgrading/05-upgrade-to-pgvector.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ services:
4545
2. Recreate your containers to use the new image:
4646
4747
```bash
48-
docker-compose down
49-
docker-compose up -d
48+
docker compose down
49+
docker compose up -d
5050
```
5151

5252
<!-- markdownlint-disable-next-line MD029-->

versioned_docs/version-1.0.0/07-contribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Running single individual tests is useful when you are working on a specific fea
3434
2. Start the Docker container for the test server.
3535
```bash
3636
cd tests/serverpod_test_server/docker_local
37-
docker-compose up --build --detach
37+
docker compose up --build --detach
3838
./setup-tables
3939
```
4040
3. Start the test server.

versioned_docs/version-1.0.0/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ It can take up to a few minutes the first time you run `serverpod create`. This
5858
:::
5959

6060
## Starting the server
61-
Start your Docker containers with `docker-compose up --build --detach`. It will start Postgres and Redis. Then, run `dart bin/main.dart` to start your server.
61+
Start your Docker containers with `docker compose up --build --detach`. It will start Postgres and Redis. Then, run `dart bin/main.dart` to start your server.
6262

6363
```bash
6464
cd mypod/mypod_server
65-
docker-compose up --build --detach
65+
docker compose up --build --detach
6666
dart bin/main.dart
6767
```
6868

@@ -77,6 +77,6 @@ Webserver listening on port 8082
7777

7878
:::info
7979

80-
If you need to stop the Docker containers at some point, just run `docker-compose stop` or use the Docker Desktop application. You can also use Docker Desktop to start, stop, and manage your containers.
80+
If you need to stop the Docker containers at some point, just run `docker compose stop` or use the Docker Desktop application. You can also use Docker Desktop to start, stop, and manage your containers.
8181

8282
:::

versioned_docs/version-1.1.0/08-contribute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Running single individual tests is useful when you are working on a specific fea
4747
2. Start the Docker container for the test server.
4848
```bash
4949
cd tests/serverpod_test_server/docker_local
50-
docker-compose up --build --detach
50+
docker compose up --build --detach
5151
./setup-tables
5252
```
5353
3. Start the test server.

versioned_docs/version-1.1.0/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ It can take up to a few minutes the first time you run `serverpod create`. This
5858
:::
5959

6060
## Starting the server
61-
Start your Docker containers with `docker-compose up --build --detach`. It will start Postgres and Redis. Then, run `dart bin/main.dart` to start your server.
61+
Start your Docker containers with `docker compose up --build --detach`. It will start Postgres and Redis. Then, run `dart bin/main.dart` to start your server.
6262

6363
```bash
6464
cd mypod/mypod_server
65-
docker-compose up --build --detach
65+
docker compose up --build --detach
6666
dart bin/main.dart
6767
```
6868

@@ -77,6 +77,6 @@ Webserver listening on port 8082
7777

7878
:::info
7979

80-
If you need to stop the Docker containers at some point, just run `docker-compose stop` or use the Docker Desktop application. You can also use Docker Desktop to start, stop, and manage your containers.
80+
If you need to stop the Docker containers at some point, just run `docker compose stop` or use the Docker Desktop application. You can also use Docker Desktop to start, stop, and manage your containers.
8181

8282
:::

versioned_docs/version-1.1.1/05-concepts/09-authentication/01-setup.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ $ serverpod generate
4242
Start your database container from the server project.
4343

4444
```bash
45-
docker-compose up --build --detach
45+
docker compose up --build --detach
4646
```
4747

4848
[Copy / Download](https://github.com/serverpod/serverpod/blob/main/modules/serverpod_auth/serverpod_auth_server/generated/tables.pgsql) the table definitions for the auth module. Save them as `tables-auth.pgsql` in the `generated` folder of your server project.

0 commit comments

Comments
 (0)