add working docker-compose example, fix #69
This commit is contained in:
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1,4 +1,4 @@
|
||||
.idea
|
||||
*.iml
|
||||
docker_mirror_cache
|
||||
docker_mirror_certs
|
||||
**/docker_mirror_cache
|
||||
**/docker_mirror_certs
|
||||
|
||||
16
docs/compose/docker-compose.yml
Normal file
16
docs/compose/docker-compose.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
version: '3.7'
|
||||
|
||||
services:
|
||||
docker_registry_proxy:
|
||||
image: rpardini/docker-registry-proxy:0.6.0 # Check and make sure this is the last released version
|
||||
env_file: # This contains REGISTRIES and AUTH_REGISTRIES
|
||||
- ./secrets.env
|
||||
environment:
|
||||
- CACHE_MAX_SIZE=256g
|
||||
- ENABLE_MANIFEST_CACHE=true
|
||||
volumes:
|
||||
# Format: <host-path>:<container-path>; adapt to your needs
|
||||
- ./docker_mirror_cache:/docker_mirror_cache # This will be up to CACHE_MAX_SIZE big
|
||||
- ./docker_mirror_certs:/ca
|
||||
ports:
|
||||
- 0.0.0.0:3128:3128 # 0.0.0.0 binds to all interfaces
|
||||
3
docs/compose/secrets.env
Normal file
3
docs/compose/secrets.env
Normal file
@@ -0,0 +1,3 @@
|
||||
# DockerHub authentication
|
||||
REGISTRIES="k8s.gcr.io gcr.io quay.io" # There is no need to specify auth.docker.io, it's built-in
|
||||
AUTH_REGISTRIES="auth.docker.io:your_dockerhub_username:your_dockerhub_password"
|
||||
Reference in New Issue
Block a user