Skip to content

Commit

Permalink
Remove obsolete "version" value from example docker-compose.yml in RE…
Browse files Browse the repository at this point in the history
…ADME.md and from .yml files in

examples since "Compose doesn't use version to select an exact schema to validate the Compose file,
but prefers the most recent schema when it's implemented."

See: https://github.com/compose-spec/compose-spec/blob/master/04-version-and-name.md
Signed-off-by: Jeff Miller <[email protected]>
  • Loading branch information
lemondjeff committed Apr 20, 2024
1 parent 061251e commit b033a18
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
[Docker-compose](https://docs.docker.com/compose/install/) example:

```yaml
version: "3"

# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
pihole:
Expand Down
2 changes: 0 additions & 2 deletions examples/docker-compose-caddy-proxy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3"

services:

# Caddy example derived from Caddy's own example at https://hub.docker.com/_/caddy
Expand Down
2 changes: 0 additions & 2 deletions examples/docker-compose-nginx-proxy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3"

# https://github.com/pi-hole/docker-pi-hole/blob/master/README.md

services:
Expand Down
2 changes: 0 additions & 2 deletions examples/docker-compose.yml.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3"

# https://github.com/pi-hole/docker-pi-hole/blob/master/README.md

services:
Expand Down

0 comments on commit b033a18

Please sign in to comment.