Skip to content

Commit 0b6da4b

Browse files
committed
add working docker-compose example, fix rpardini#69
1 parent 8bfb0a9 commit 0b6da4b

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

Diff for: .gitignore

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.idea
22
*.iml
3-
docker_mirror_cache
4-
docker_mirror_certs
3+
**/docker_mirror_cache
4+
**/docker_mirror_certs

Diff for: docs/compose/docker-compose.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: '3.7'
2+
3+
services:
4+
docker_registry_proxy:
5+
image: rpardini/docker-registry-proxy:0.6.0 # Check and make sure this is the last released version
6+
env_file: # This contains REGISTRIES and AUTH_REGISTRIES
7+
- ./secrets.env
8+
environment:
9+
- CACHE_MAX_SIZE=256g
10+
- ENABLE_MANIFEST_CACHE=true
11+
volumes:
12+
# Format: <host-path>:<container-path>; adapt to your needs
13+
- ./docker_mirror_cache:/docker_mirror_cache # This will be up to CACHE_MAX_SIZE big
14+
- ./docker_mirror_certs:/ca
15+
ports:
16+
- 0.0.0.0:3128:3128 # 0.0.0.0 binds to all interfaces

Diff for: docs/compose/secrets.env

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# DockerHub authentication
2+
REGISTRIES="k8s.gcr.io gcr.io quay.io" # There is no need to specify auth.docker.io, it's built-in
3+
AUTH_REGISTRIES="auth.docker.io:your_dockerhub_username:your_dockerhub_password"

0 commit comments

Comments
 (0)