Merge pull request #3872 from das7pad/patch-1
Use docker-compose spec v3 in nginx receipt
This commit is contained in:
commit
5cd209bd53
1 changed files with 19 additions and 16 deletions
|
@ -168,6 +168,9 @@ Review the [requirements](index.md#requirements), then follow these steps.
|
|||
5. Create the compose file. Paste the following YAML into a new file called `docker-compose.yml`.
|
||||
|
||||
```yaml
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
nginx:
|
||||
# Note : Only nginx:alpine supports bcrypt.
|
||||
# If you don't need to use bcrypt, you can use a different tag.
|
||||
|
@ -175,8 +178,8 @@ Review the [requirements](index.md#requirements), then follow these steps.
|
|||
image: "nginx:alpine"
|
||||
ports:
|
||||
- 5043:443
|
||||
links:
|
||||
- registry:registry
|
||||
depends_on:
|
||||
- registry
|
||||
volumes:
|
||||
- ./auth:/etc/nginx/conf.d
|
||||
- ./auth/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||
|
|
Loading…
Reference in a new issue