Yum repository server accessible through a reverse proxy provided by nginx.
Instructions how to host this multicontainer application on a server with a specific domain name including SSL certificates.
- domain name
- SSL certificate
- docker-compose
- add your desired packages (RPM files) to
yum/packages/
- add your SSL certificate files to
nginx/certs/
- add your CRT file as
repository.crt
(nginx/certs/repository.crt
) - add your KEY file as
repository.key
(nginx/certs/repository.key
)
- add your CRT file as
- build the application via
docker-compose build
- start the application via
docker-compose up -d
Edit the yum/repository.repo
file to change the name and ID of the repository to yours.
Note that using HTTP is not secure!
To enable HTTP change the HTTP part in nginx/conf.d/repository.conf
file to:
# HTTP
server {
listen 80;
listen [::]:80;
# this is the internal Docker DNS, cache only for 30s
resolver 127.0.0.11 valid=30s;
location / {
set $upstream http://yum:80;
proxy_pass $upstream;
proxy_set_header Host $host;
}
}