2021-07-23 12:39:28 +03:00
2021-07-23 12:39:28 +03:00
2021-05-17 10:25:38 +03:00
2021-07-23 12:39:28 +03:00
2021-05-17 10:25:38 +03:00
2019-11-14 02:22:21 +02:00
2021-04-22 05:30:15 +03:00
2021-07-23 12:39:28 +03:00
2021-05-17 10:25:38 +03:00

NGINX with TLSv1.3 support & built-in RTMP Media Streaming Server with GeoIP2 country database.

Build Status Docker Pulls Nginx Version

Building The Image

git clone https://github.com/sceptic30/nginx-rtmp-geoip2-alpine
cd nginx-rtmp-geoip2-alpine
chmod +x docker-entrypoint.sh envsubst-on-templates.sh tune-worker-processes.sh
docker build . -t your_image_tag

Run the image

docker run -d --rm --name webserver -p 80:3080 -p 443:3443 your_image_tag

Current Image running in non-priviledged mode, under the user 'nginx'

For more details please visit Admintuts.net

How to enable GeoIP2 database

You must bind mount your database file (GeoLite2-Country.mmdb or GeoLite2-City.mmdb) to the container file system appropriate location. This location is

/usr/share/geoip/

In a docker-compose file that would look like:

  webserver:
    image: admintuts/nginx:1.21.1-rtmp-geoip2-alpine
    container_name: webserver
    hostname: webserver
    restart: always
    ports:
        - "80:3080"
        - "443:3443"
    volumes:
        - ./geoip-db/GeoLite2-City.mmdb:/usr/share/geoip/GeoLite2-City.mmdb
    networks:
        - default

License

MIT

Free Software, Hell Yeah!

Description
No description provided
Readme MIT 55 MiB
Languages
Dockerfile 55.3%
Shell 44.7%