docker-proxy: Deploy a proxy/cache for Docker Hub
Docker Hub's rate limits are so low now that they've started to affect my home lab. Deploying a caching proxy and directing all pull requests through it should prevent exceeding the limit. It will also help prevent containers from starting if access to the Internet is down, as long as their images have been cached recently.
This commit is contained in:
10
group_vars/docker-proxy.yml
Normal file
10
group_vars/docker-proxy.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
data_volumes:
|
||||
- dev: /dev/vdb
|
||||
fstype: ext4
|
||||
mountpoint: /var/cache
|
||||
nginx_ssl_certificate: /var/lib/lego/certificates/{{ lego_domains[0] }}.crt
|
||||
nginx_ssl_certificate_key: /var/lib/lego/certificates/{{ lego_domains[0] }}.key
|
||||
lego_acme_server: https://ca.pyrocufflink.blue/acme/acme/directory
|
||||
lego_acme_email: '{{ ansible_hostname }}@pyrocufflink.net'
|
||||
lego_domains:
|
||||
- docker-hub.proxy.pyrocufflink.blue
|
||||
Reference in New Issue
Block a user