1
0
Fork 0

add docker-registry-proxy

This commit is contained in:
Ilya Mukhortov 2025-04-10 17:45:17 +10:00
parent d3b4d1ac32
commit ad64597215
3 changed files with 29 additions and 0 deletions

View File

@ -58,6 +58,8 @@ PATH=/usr/bin:/bin:/usr/local/bin
00 23 * * * /root/medicine-config/medicine/update.sh 00 23 * * * /root/medicine-config/medicine/update.sh
00 00 * * * /root/medicine-config/scripts/docker-cleanup.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 * * * * * /root/medicine-config/scripts/crontab-check.sh >> /var/log/crontab-check.log 2>&1
sudo timedatectl set-timezone Asia/Vladivostok sudo timedatectl set-timezone Asia/Vladivostok

View File

@ -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;
}
}

View File

@ -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"