From dec861f3aad6e29508d93ef8789cc9458ac0c335 Mon Sep 17 00:00:00 2001 From: benvia <16624067+benvia@users.noreply.github.com> Date: Sat, 13 Jul 2024 16:49:55 +0200 Subject: [PATCH] Remove version from Docker compose files (#159) Co-authored-by: Benoit Vianin --- README.md | 4 ---- README.template | 4 ---- docker-compose.yml | 2 -- examples/with-certbot/docker-compose.yml | 2 -- examples/with-mysql/docker-compose.yml | 2 -- examples/with-pgsql/docker-compose.yml | 2 -- examples/with-rp-traefik/docker-compose.yml | 2 -- examples/with-secrets/docker-compose.yml | 2 -- 8 files changed, 20 deletions(-) diff --git a/README.md b/README.md index a229058..24a259d 100644 --- a/README.md +++ b/README.md @@ -36,8 +36,6 @@ Let's use [Docker Compose](https://docs.docker.com/compose/) to integrate it wit Create `docker-compose.yml` file as following: ```yaml -version: "3" - services: mariadb: image: mariadb:latest @@ -151,8 +149,6 @@ It is possible to execute `*.sh`, `*.sql` and/or `*.php` custom file at the end Mount the volume with compose file : ```yaml -version: "3" - services: mariadb: image: mariadb:latest diff --git a/README.template b/README.template index 83b02f8..01a90dd 100644 --- a/README.template +++ b/README.template @@ -30,8 +30,6 @@ Let's use [Docker Compose](https://docs.docker.com/compose/) to integrate it wit Create `docker-compose.yml` file as following: ```yaml -version: "3" - services: mariadb: image: mariadb:latest @@ -145,8 +143,6 @@ It is possible to execute `*.sh`, `*.sql` and/or `*.php` custom file at the end Mount the volume with compose file : ```yaml -version: "3" - services: mariadb: image: mariadb:latest diff --git a/docker-compose.yml b/docker-compose.yml index 66fecdc..bb2eeee 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,8 +8,6 @@ # # More information about Docker-compose : https://docs.docker.com/compose/ -version: "3.8" - networks: internal-pod: internal: true diff --git a/examples/with-certbot/docker-compose.yml b/examples/with-certbot/docker-compose.yml index 24d9495..38ec684 100644 --- a/examples/with-certbot/docker-compose.yml +++ b/examples/with-certbot/docker-compose.yml @@ -1,5 +1,3 @@ -version: "3.4" - services: db: image: mysql:8.0.20 diff --git a/examples/with-mysql/docker-compose.yml b/examples/with-mysql/docker-compose.yml index d077471..ae95cce 100644 --- a/examples/with-mysql/docker-compose.yml +++ b/examples/with-mysql/docker-compose.yml @@ -1,5 +1,3 @@ -version: "3.8" - networks: internal-pod: internal: true diff --git a/examples/with-pgsql/docker-compose.yml b/examples/with-pgsql/docker-compose.yml index 997c4fa..e46618e 100644 --- a/examples/with-pgsql/docker-compose.yml +++ b/examples/with-pgsql/docker-compose.yml @@ -1,5 +1,3 @@ -version: "3.8" - networks: internal-pod: internal: true diff --git a/examples/with-rp-traefik/docker-compose.yml b/examples/with-rp-traefik/docker-compose.yml index fce49d0..de6b19f 100644 --- a/examples/with-rp-traefik/docker-compose.yml +++ b/examples/with-rp-traefik/docker-compose.yml @@ -1,5 +1,3 @@ -version: "3.8" - networks: proxy-network: name: proxy-network diff --git a/examples/with-secrets/docker-compose.yml b/examples/with-secrets/docker-compose.yml index d3ebde5..98fd130 100644 --- a/examples/with-secrets/docker-compose.yml +++ b/examples/with-secrets/docker-compose.yml @@ -1,5 +1,3 @@ -version: "3.8" - networks: internal-pod: internal: true