diff --git a/modules/compose/compose_api_test.go b/modules/compose/compose_api_test.go index e4dff06cfd..303d2bf814 100644 --- a/modules/compose/compose_api_test.go +++ b/modules/compose/compose_api_test.go @@ -435,7 +435,7 @@ func TestDockerComposeAPIComplex(t *testing.T) { func TestDockerComposeAPIWithStackReader(t *testing.T) { identifier := testNameHash(t.Name()) - composeContent := `version: '3.7' + composeContent := ` services: api-nginx: image: docker.io/nginx:stable-alpine @@ -475,7 +475,7 @@ services: func TestDockerComposeAPIWithStackReaderAndComposeFile(t *testing.T) { identifier := testNameHash(t.Name()) simple, _ := RenderComposeSimple(t) - composeContent := `version: '3.7' + composeContent := ` services: api-postgres: image: docker.io/postgres:14 diff --git a/modules/compose/testdata/docker-compose-build.yml b/modules/compose/testdata/docker-compose-build.yml index 88c6ccda40..d2210d3153 100644 --- a/modules/compose/testdata/docker-compose-build.yml +++ b/modules/compose/testdata/docker-compose-build.yml @@ -1,4 +1,3 @@ -version: '3' services: {{ .ServiceType }}-echo: build: @@ -8,4 +7,4 @@ services: ports: - target: 8080 published: {{ .Port_0 }} - protocol: tcp \ No newline at end of file + protocol: tcp diff --git a/modules/compose/testdata/docker-compose-complex.yml b/modules/compose/testdata/docker-compose-complex.yml index f2eacf026a..fe0636dff2 100644 --- a/modules/compose/testdata/docker-compose-complex.yml +++ b/modules/compose/testdata/docker-compose-complex.yml @@ -1,4 +1,3 @@ -version: '3' services: {{ .ServiceType }}-nginx: image: docker.io/nginx:stable-alpine @@ -10,4 +9,4 @@ services: - MYSQL_DATABASE=db - MYSQL_ROOT_PASSWORD=my-secret-pw ports: - - "{{ .Port_1 }}:3306" \ No newline at end of file + - "{{ .Port_1 }}:3306" diff --git a/modules/compose/testdata/docker-compose-container-name.yml b/modules/compose/testdata/docker-compose-container-name.yml index b7e497fd84..c46ca68888 100644 --- a/modules/compose/testdata/docker-compose-container-name.yml +++ b/modules/compose/testdata/docker-compose-container-name.yml @@ -1,4 +1,3 @@ -version: '3' services: {{ .ServiceType }}-nginx: container_name: {{ .ServiceType }}-nginxy diff --git a/modules/compose/testdata/docker-compose-no-exposed-ports.yml b/modules/compose/testdata/docker-compose-no-exposed-ports.yml index 58da1351f4..3f487156c3 100644 --- a/modules/compose/testdata/docker-compose-no-exposed-ports.yml +++ b/modules/compose/testdata/docker-compose-no-exposed-ports.yml @@ -1,4 +1,3 @@ -version: '3' services: {{ .ServiceType }}-nginx: image: docker.io/nginx:stable-alpine diff --git a/modules/compose/testdata/docker-compose-override.yml b/modules/compose/testdata/docker-compose-override.yml index 8a44e78631..c8714256e0 100644 --- a/modules/compose/testdata/docker-compose-override.yml +++ b/modules/compose/testdata/docker-compose-override.yml @@ -1,4 +1,3 @@ -version: '3' services: {{ .ServiceType }}-nginx: image: docker.io/nginx:stable-alpine diff --git a/modules/compose/testdata/docker-compose-postgres.yml b/modules/compose/testdata/docker-compose-postgres.yml index 7988a43266..9671a7bdb5 100644 --- a/modules/compose/testdata/docker-compose-postgres.yml +++ b/modules/compose/testdata/docker-compose-postgres.yml @@ -1,4 +1,3 @@ -version: '3' services: {{ .ServiceType }}-postgres: image: docker.io/postgres:14 diff --git a/modules/compose/testdata/docker-compose-short-lifespan.yml b/modules/compose/testdata/docker-compose-short-lifespan.yml index 2deb847d85..47fd1314bb 100644 --- a/modules/compose/testdata/docker-compose-short-lifespan.yml +++ b/modules/compose/testdata/docker-compose-short-lifespan.yml @@ -1,4 +1,3 @@ -version: '3' services: tzatziki: image: docker.io/alpine:latest diff --git a/modules/compose/testdata/docker-compose-simple.yml b/modules/compose/testdata/docker-compose-simple.yml index 90b9a4be87..ebf8a64b6f 100644 --- a/modules/compose/testdata/docker-compose-simple.yml +++ b/modules/compose/testdata/docker-compose-simple.yml @@ -1,4 +1,3 @@ -version: '3' services: {{ .ServiceType }}-nginx: image: docker.io/nginx:stable-alpine diff --git a/modules/compose/testdata/docker-compose-volume.yml b/modules/compose/testdata/docker-compose-volume.yml index 81add904d0..f284a71452 100644 --- a/modules/compose/testdata/docker-compose-volume.yml +++ b/modules/compose/testdata/docker-compose-volume.yml @@ -1,4 +1,3 @@ -version: '3' services: {{ .ServiceType }}-nginx: image: docker.io/nginx:stable-alpine