浏览代码

Use consistent docker-compose file version in docs

Jamie Curnow 2 年之前
父节点
当前提交
79fedfcea4
共有 3 个文件被更改,包括 8 次插入7 次删除
  1. 1 1
      README.md
  2. 5 4
      docs/advanced-config/README.md
  3. 2 2
      docs/setup/README.md

+ 1 - 1
README.md

@@ -56,7 +56,7 @@ I won't go in to too much detail here but here are the basics for someone new to
 2. Create a docker-compose.yml file similar to this:
 2. Create a docker-compose.yml file similar to this:
 
 
 ```yml
 ```yml
-version: '3'
+version: '3.8'
 services:
 services:
   app:
   app:
     image: 'jc21/nginx-proxy-manager:latest'
     image: 'jc21/nginx-proxy-manager:latest'

+ 5 - 4
docs/advanced-config/README.md

@@ -25,7 +25,7 @@ networks:
 Let's look at a Portainer example:
 Let's look at a Portainer example:
 
 
 ```yml
 ```yml
-version: '3'
+version: '3.8'
 services:
 services:
 
 
   portainer:
   portainer:
@@ -60,14 +60,14 @@ healthcheck:
   timeout: 3s
   timeout: 3s
 ```
 ```
 
 
-## Docker Secrets
+## Docker File Secrets
 
 
-This image supports the use of Docker secrets to import from file and keep sensitive usernames or passwords from being passed or preserved in plaintext.
+This image supports the use of Docker secrets to import from files and keep sensitive usernames or passwords from being passed or preserved in plaintext.
 
 
 You can set any environment variable from a file by appending `__FILE` (double-underscore FILE) to the environmental variable name.
 You can set any environment variable from a file by appending `__FILE` (double-underscore FILE) to the environmental variable name.
 
 
 ```yml
 ```yml
-version: "3.7"
+version: '3.8'
 
 
 secrets:
 secrets:
   # Secrets are single-line text files where the sole content is the secret
   # Secrets are single-line text files where the sole content is the secret
@@ -106,6 +106,7 @@ services:
       - MYSQL_PWD
       - MYSQL_PWD
     depends_on:
     depends_on:
       - db
       - db
+
   db:
   db:
     image: jc21/mariadb-aria
     image: jc21/mariadb-aria
     restart: unless-stopped
     restart: unless-stopped

+ 2 - 2
docs/setup/README.md

@@ -5,7 +5,7 @@
 Create a `docker-compose.yml` file:
 Create a `docker-compose.yml` file:
 
 
 ```yml
 ```yml
-version: "3"
+version: '3.8'
 services:
 services:
   app:
   app:
     image: 'jc21/nginx-proxy-manager:latest'
     image: 'jc21/nginx-proxy-manager:latest'
@@ -51,7 +51,7 @@ are going to use.
 Here is an example of what your `docker-compose.yml` will look like when using a MariaDB container:
 Here is an example of what your `docker-compose.yml` will look like when using a MariaDB container:
 
 
 ```yml
 ```yml
-version: "3"
+version: '3.8'
 services:
 services:
   app:
   app:
     image: 'jc21/nginx-proxy-manager:latest'
     image: 'jc21/nginx-proxy-manager:latest'