add docker-registry-proxy
This commit is contained in:
parent
d3b4d1ac32
commit
ad64597215
|
|
@ -58,6 +58,8 @@ PATH=/usr/bin:/bin:/usr/local/bin
|
|||
00 23 * * * /root/medicine-config/medicine/update.sh
|
||||
00 00 * * * /root/medicine-config/scripts/docker-cleanup.sh
|
||||
|
||||
0 * * * * sudo vipnetclient info
|
||||
|
||||
* * * * * /root/medicine-config/scripts/crontab-check.sh >> /var/log/crontab-check.log 2>&1
|
||||
|
||||
sudo timedatectl set-timezone Asia/Vladivostok
|
||||
|
|
|
|||
|
|
@ -0,0 +1,11 @@
|
|||
server {
|
||||
listen 80;
|
||||
|
||||
location / {
|
||||
access_log off;
|
||||
proxy_pass https://docker.med-logic.ru;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header Host docker.med-logic.ru;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
docker-registry-proxy:
|
||||
restart: "always"
|
||||
image: nginx
|
||||
container_name: docker-registry-proxy
|
||||
volumes:
|
||||
- ./default.conf:/etc/nginx/conf.d/default.conf
|
||||
ports:
|
||||
- "840:80"
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "200k"
|
||||
max-file: "10"
|
||||
Loading…
Reference in New Issue