mirror of
https://github.com/distribution/distribution.git
synced 2026-07-17 02:00:41 +00:00
Update docker-compose structure in deploying.md
adding "services:" top-level key in docker-compose file example. Signed-off-by: John de Graaff <john@de-graaff.net>
This commit is contained in:
@@ -496,21 +496,22 @@ compose file to deploy it, rather than relying on a specific `docker run`
|
||||
invocation. Use the following example `docker-compose.yml` as a template.
|
||||
|
||||
```yaml
|
||||
registry:
|
||||
restart: always
|
||||
image: registry:3
|
||||
ports:
|
||||
- 5000:5000
|
||||
environment:
|
||||
REGISTRY_HTTP_TLS_CERTIFICATE: /certs/domain.crt
|
||||
REGISTRY_HTTP_TLS_KEY: /certs/domain.key
|
||||
REGISTRY_AUTH: htpasswd
|
||||
REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd
|
||||
REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
|
||||
volumes:
|
||||
- /path/data:/var/lib/registry
|
||||
- /path/certs:/certs
|
||||
- /path/auth:/auth
|
||||
services:
|
||||
registry:
|
||||
restart: always
|
||||
image: registry:3
|
||||
ports:
|
||||
- 5000:5000
|
||||
environment:
|
||||
REGISTRY_HTTP_TLS_CERTIFICATE: /certs/domain.crt
|
||||
REGISTRY_HTTP_TLS_KEY: /certs/domain.key
|
||||
REGISTRY_AUTH: htpasswd
|
||||
REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd
|
||||
REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
|
||||
volumes:
|
||||
- /path/data:/var/lib/registry
|
||||
- /path/certs:/certs
|
||||
- /path/auth:/auth
|
||||
```
|
||||
|
||||
{{< hint type=warning >}}
|
||||
|
||||
Reference in New Issue
Block a user