Skip to content

Commit 47743a4

Browse files
committed
Compose common flags --file and --project-name must be used before the subcommand (like docker-compose syntax).
Signed-off-by: Guillaume Tardif <[email protected]>
1 parent 01c72bd commit 47743a4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

cloud/aci-integration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Also see the [full list of compose features supported by ACI](aci-compose-featur
147147

148148
2. Run `docker compose up` and `docker compose down` to start and then stop a full Compose application.
149149

150-
By default, `docker compose up` uses the `docker-compose.yaml` file in the current folder. You can specify the working directory using the --workdir flag or specify the Compose file directly using the `--file` flag.
150+
By default, `docker compose up` uses the `docker-compose.yaml` file in the current folder. You can specify the working directory using the --workdir flag or specify the Compose file directly using `docker compose --file mycomposefile.yaml up`.
151151

152152
You can also specify a name for the Compose application using the `--project-name` flag during deployment. If no name is specified, a name will be derived from the working directory.
153153

@@ -161,7 +161,7 @@ Also see the [full list of compose features supported by ACI](aci-compose-featur
161161
162162
## Updating applications
163163

164-
From a deployed Compose application, you can update the application by re-deploying it with the same project name: `docker compose up --project-name PROJECT`.
164+
From a deployed Compose application, you can update the application by re-deploying it with the same project name: `docker compose --project-name PROJECT up`.
165165

166166
Updating an application means the ACI node will be reused, and the application will keep the same IP address that was previously allocated to expose ports, if any. ACI has some limitations on what can be updated in an existing application (you will not be able to change CPU/memory reservation for example), in these cases, you need to deploy a new application from scratch.
167167

cloud/ecs-integration.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ current context using the command `docker context use myecscontext`.
133133
stop a full Compose application.
134134

135135
By default, `docker compose up` uses the `compose.yaml` or `docker-compose.yaml` file in
136-
the current folder. You can specify the Compose file directly using the
137-
`--file` flag.
136+
the current folder. You can specify the working directory using the --workdir flag or
137+
specify the Compose file directly using `docker compose --file mycomposefile.yaml up`.
138138

139139
You can also specify a name for the Compose application using the `--project-name` flag during deployment. If no name is specified, a name will be derived from the working directory.
140140

@@ -186,10 +186,10 @@ By default you can see logs of your compose application the same way you check l
186186
docker compose logs
187187

188188
# specify compose project name
189-
docker compose logs --project-name PROJECT
189+
docker compose --project-name PROJECT logs
190190

191191
# specify compose file
192-
docker compose logs --file /path/to/docker-compose.yaml
192+
docker compose --file /path/to/docker-compose.yaml logs
193193
```
194194

195195
A log group is created for the application as `docker-compose/<application_name>`,

0 commit comments

Comments
 (0)