Created
August 25, 2018 14:00
-
-
Save tyage/ecbb59e31d36e06261bfdfb70b6da080 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
dockerauth: | |
image: cesanta/docker_auth | |
ports: | |
- "5001:5001" | |
volumes: | |
- ./config:/config:ro | |
- ./log:/logs | |
- ./certs:/certs | |
command: /config/registry_auth_config.yml | |
restart: always | |
container_name: "dockerauth" | |
registry: | |
restart: always | |
image: registry:2 | |
ports: | |
- 5000:5000 | |
environment: | |
REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /var/lib/registry | |
REGISTRY_AUTH: token | |
REGISTRY_AUTH_TOKEN_REALM: https://dockerauth:5001/auth | |
REGISTRY_AUTH_TOKEN_SERVICE: "Docker registry" | |
REGISTRY_AUTH_TOKEN_ISSUER: "Auth Service" | |
REGISTRY_AUTH_TOKEN_ROOTCERTBUNDLE: /certs/server.crt | |
volumes: | |
- ./data:/var/lib/registry | |
- ./certs:/certs | |
container_name: "registry" | |
links: | |
- dockerauth |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment