Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit 689be53

Browse files
authored
Remove obsolete version top-level elements from compose examples (#1687)
1 parent 5042dbb commit 689be53

File tree

19 files changed

+6
-69
lines changed

19 files changed

+6
-69
lines changed

content/en/getting-started/installation.md

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -295,38 +295,10 @@ Docker Compose v1.9.0 and above is supported.
295295

296296
{{< tabpane lang="yml" >}}
297297
{{< tab header="Community" lang="yml" >}}
298-
services:
299-
localstack:
300-
container_name: "${LOCALSTACK_DOCKER_NAME:-localstack-main}"
301-
image: localstack/localstack
302-
ports:
303-
- "127.0.0.1:4566:4566" # LocalStack Gateway
304-
- "127.0.0.1:4510-4559:4510-4559" # external services port range
305-
environment:
306-
# LocalStack configuration: https://docs.localstack.cloud/references/configuration/
307-
- DEBUG=${DEBUG:-0}
308-
volumes:
309-
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
310-
- "/var/run/docker.sock:/var/run/docker.sock"
298+
{{< github repo="localstack/localstack" file="docker-compose.yml" >}}
311299
{{< /tab >}}
312300
{{< tab header="Pro" lang="yml" >}}
313-
services:
314-
localstack:
315-
container_name: "${LOCALSTACK_DOCKER_NAME:-localstack-main}"
316-
image: localstack/localstack-pro # required for Pro
317-
ports:
318-
- "127.0.0.1:4566:4566" # LocalStack Gateway
319-
- "127.0.0.1:4510-4559:4510-4559" # external services port range
320-
- "127.0.0.1:443:443" # LocalStack HTTPS Gateway (Pro)
321-
environment:
322-
# Activate LocalStack Pro: https://docs.localstack.cloud/getting-started/auth-token/
323-
- LOCALSTACK_AUTH_TOKEN=${LOCALSTACK_AUTH_TOKEN:?} # required for Pro
324-
# LocalStack configuration: https://docs.localstack.cloud/references/configuration/
325-
- DEBUG=${DEBUG:-0}
326-
- PERSISTENCE=${PERSISTENCE:-0}
327-
volumes:
328-
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
329-
- "/var/run/docker.sock:/var/run/docker.sock"
301+
{{< github repo="localstack/localstack" file="docker-compose-pro.yml" >}}
330302
{{< /tab >}}
331303
{{< /tabpane >}}
332304

content/en/references/external-ports.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ $ GATEWAY_LISTEN=0.0.0.0:4666 EXTERNAL_SERVICE_PORTS_START=4610 EXTERNAL_SERVICE
4747
$ GATEWAY_LISTEN=0.0.0.0:4766 EXTERNAL_SERVICE_PORTS_START=4710 EXTERNAL_SERVICE_PORTS_END=4759 MAIN_CONTAINER_NAME=localstack-main-3 localstack start
4848
{{< /tab >}}
4949
{{< tab header="docker-compose" lang="yml" >}}
50-
version: "3.8"
51-
5250
services:
5351
localstack-main-1:
5452
container_name: localstack-main-1

content/en/references/init-hooks.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,6 @@ Start Localstack:
136136

137137
{{< tabpane >}}
138138
{{< tab header="docker-compose.yml" lang="yml" >}}
139-
version: "3.8"
140-
141139
services:
142140
localstack:
143141
container_name: "${LOCALSTACK_DOCKER_NAME:-localstack-main}"
@@ -188,8 +186,6 @@ Start LocalStack Pro with mounted `main.tf`:
188186

189187
{{< tabpane >}}
190188
{{< tab header="docker-compose.yml" lang="yml" >}}
191-
version: "3.8"
192-
193189
services:
194190
localstack:
195191
container_name: "localstack-main"

content/en/references/network-troubleshooting/endpoint-url/_index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,6 @@ docker inspect localstack-main | \
117117
docker run --rm -it --dns 172.27.0.2 --network ls <arguments> <image name>
118118
{{< / tab >}}
119119
{{< tab header="docker-compose.yml" lang="yaml" >}}
120-
version: "3.8"
121-
122120
services:
123121
localstack:
124122
container_name: "${LOCALSTACK_DOCKER_NAME:-localstack-main}"

content/en/references/podman.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ For the Docker Compose setup, use the following configuration.
103103
When running in rootless mode, ensure to comment out the HTTPS gateway port, as it is unable to bind to privileged ports below 1024.
104104

105105
```yaml
106-
version: "3.8"
107106
services:
108107
localstack:
109108
container_name: "${LOCALSTACK_DOCKER_NAME:-localstack-main}"

content/en/tutorials/java-notification-app/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,8 +531,6 @@ Now that the initial coding is done, we can give it a try.
531531
Let's start LocalStack using a custom `docker-compose` setup, which includes MailHog to capture the emails sent by SES:
532532

533533
```yaml
534-
version: "3.8"
535-
536534
services:
537535
localstack:
538536
container_name: "${LOCALSTACK_DOCKER_NAME:-localstack-main}"

content/en/tutorials/using-terraform-with-testcontainers-and-localstack/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,6 @@ In the root folder, you'll find the essential configs in the `docker-compose.yml
109109
<summary><b>Expand file</b></summary>
110110
{{< highlight yaml >}}
111111

112-
version: "3.8"
113-
114112
services:
115113
localstack:
116114
container_name: "${LOCALSTACK_DOCKER_NAME:-localstack-main}"

content/en/user-guide/aws/ecs/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ Your file paths might differ, so check Docker's documentation on [Environment Va
322322
Here is a Docker Compose example:
323323

324324
```yaml
325-
version: '3.8'
326325
services:
327326
localstack:
328327
container_name: "${LOCALSTACK_DOCKER_NAME:-localstack-main}"

content/en/user-guide/aws/es/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,6 @@ Note that only a single backend can be configured, meaning that you will get a s
207207
The following shows a sample docker-compose file that contains a single-noded elasticsearch cluster and a basic localstack setp.
208208

209209
```yaml
210-
version: "3.9"
211-
212210
services:
213211
elasticsearch:
214212
container_name: elasticsearch

content/en/user-guide/aws/opensearch/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,6 @@ It's important to bear in mind that only a single backend configuration is possi
286286
Here is a sample `docker-compose.yaml` file that contains a single-node OpenSearch cluster and a basic LocalStack setup.
287287

288288
```yaml
289-
version: "3.9"
290-
291289
services:
292290
opensearch:
293291
container_name: opensearch

0 commit comments

Comments
 (0)