https://github.com/europ/yum-server
containerized yum repository hosting
https://github.com/europ/yum-server
docker docker-compose hosting nginx repo repository yum
Last synced: about 2 months ago
JSON representation
containerized yum repository hosting
- Host: GitHub
- URL: https://github.com/europ/yum-server
- Owner: europ
- Created: 2020-10-01T16:13:49.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-26T07:56:07.000Z (over 5 years ago)
- Last Synced: 2025-05-15T14:11:50.792Z (about 1 year ago)
- Topics: docker, docker-compose, hosting, nginx, repo, repository, yum
- Language: Dockerfile
- Homepage:
- Size: 732 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Yum Repository Server
Yum repository server accessible through a reverse proxy provided by nginx.
## Schema

## Setup
#### Prerequisites
Instructions how to host this multicontainer application on a server with a specific domain name including SSL certificates.
#### Prerequisities
* domain name
* SSL certificate
* [docker-compose](https://docs.docker.com/compose)
* [docker](https://docs.docker.com/engine)
#### Instructions
1. add your desired packages (RPM files) to `yum/packages/`
1. 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`)
1. build the application via `docker-compose build`
1. start the application via `docker-compose up -d`
## Customization
#### Repository
Edit the `yum/repository.repo` file to change the name and ID of the repository to yours.
#### Enable HTTP
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;
}
}
```