mirror of
https://github.com/distribution/distribution.git
synced 2025-09-03 07:54:41 +00:00
Use docker-compose spec v3 in nginx receipt
Previously v1 was used. Signed-off-by: Jakob Ackermann <das7pad@outlook.com>
This commit is contained in:
@@ -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`.
|
5. Create the compose file. Paste the following YAML into a new file called `docker-compose.yml`.
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
version: "3"
|
||||||
|
|
||||||
|
services:
|
||||||
nginx:
|
nginx:
|
||||||
# Note : Only nginx:alpine supports bcrypt.
|
# Note : Only nginx:alpine supports bcrypt.
|
||||||
# If you don't need to use bcrypt, you can use a different tag.
|
# 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"
|
image: "nginx:alpine"
|
||||||
ports:
|
ports:
|
||||||
- 5043:443
|
- 5043:443
|
||||||
links:
|
depends_on:
|
||||||
- registry:registry
|
- registry
|
||||||
volumes:
|
volumes:
|
||||||
- ./auth:/etc/nginx/conf.d
|
- ./auth:/etc/nginx/conf.d
|
||||||
- ./auth/nginx.conf:/etc/nginx/nginx.conf:ro
|
- ./auth/nginx.conf:/etc/nginx/nginx.conf:ro
|
||||||
|
Reference in New Issue
Block a user