mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2025-01-12 14:47:55 +03:00
nginx - new format
This commit is contained in:
parent
abfe7646ac
commit
4c044fd777
2
linux/nginx/1.21.0/main/.env
Normal file
2
linux/nginx/1.21.0/main/.env
Normal file
@ -0,0 +1,2 @@
|
||||
NGINX_VERSION=1.21.0
|
||||
NGINX_DOWNLOAD_URL=http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz
|
@ -11,8 +11,8 @@ ARG SRC_DIR=${BUILDS_DIR}/src
|
||||
ARG EXPORT_DIR=${BUILDS_DIR}/export
|
||||
ARG PRE_DIR=${BUILDS_DIR}/pre
|
||||
ARG NGINX_SRC_DIR=${SRC_DIR}/nginx
|
||||
ARG NGINX_VERSION=1.20.0
|
||||
ARG NGINX_DOWNLOAD_URL=http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz
|
||||
ARG NGINX_VERSION
|
||||
ARG NGINX_DOWNLOAD_URL
|
||||
ARG LUAJIT_INC=/usr/local/include/luajit-2.1
|
||||
ARG LUAJIT_LIB=/usr/local/lib
|
||||
|
||||
@ -39,6 +39,7 @@ RUN cd ${SRC_DIR} && \
|
||||
ln -s /usr/local/lib/libIP2Location.so /lib/libIP2Location.so && \
|
||||
ln -s /usr/local/lib/libIP2Location.so.1 /lib/libIP2Location.so.1 && \
|
||||
ln -s /usr/local/lib/libIP2Location.so.2 /lib/libIP2Location.so.2 && \
|
||||
ln -s /lib/x86_64-linux-gnu/libcrypto.so.1.1 ln -s /lib/x86_64-linux-gnu/libcrypto.so.1 && \
|
||||
dpkg --force-all -i ${EXPORT_DIR}/*.deb
|
||||
|
||||
##################################################################
|
||||
@ -148,7 +149,7 @@ RUN cd ${NGINX_SRC_DIR} && \
|
||||
--add-dynamic-module=http-geoip2 \
|
||||
--add-dynamic-module=spnego-http-auth-nginx-module \
|
||||
--add-dynamic-module=http-auth-ldap \
|
||||
--add-dynamic-module=nginx-audio-track-for-hls-module \
|
||||
# --add-dynamic-module=nginx-audio-track-for-hls-module \
|
||||
--add-dynamic-module=ip2location-nginx \
|
||||
--add-dynamic-module=nginx-vod-module \
|
||||
# --add-dynamic-module=nginx-module-vts \
|
||||
@ -207,6 +208,7 @@ RUN apt-get update && \
|
||||
ln -s /usr/local/lib/libIP2Location.so.3 /lib/libIP2Location.so.3 && \
|
||||
ln -s /usr/local/lib/libIP2Location.so.4 /lib/libIP2Location.so.4 && \
|
||||
ln -s /usr/local/lib/libIP2Location.so.5 /lib/libIP2Location.so.5 && \
|
||||
ln -s /lib/x86_64-linux-gnu/libcrypto.so.1.1 ln -s /lib/x86_64-linux-gnu/libcrypto.so.1 && \
|
||||
ln -sf /dev/stdout /var/log/nginx/access.log && \
|
||||
ln -sf /dev/stderr /var/log/nginx/error.log && \
|
||||
ln -sf /etc/ssl/dhparam.pem /etc/nginx/dhparam.pem && \
|
5
linux/nginx/1.21.0/main/Makefile
Normal file
5
linux/nginx/1.21.0/main/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
docker-compose push
|
9
linux/nginx/1.21.0/main/docker-compose.yml
Normal file
9
linux/nginx/1.21.0/main/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/nginx:${NGINX_VERSION}"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
NGINX_VERSION: ${NGINX_VERSION}
|
||||
NGINX_DOWNLOAD_URL: ${NGINX_DOWNLOAD_URL}
|
2
linux/nginx/1.21.0/php/.env
Normal file
2
linux/nginx/1.21.0/php/.env
Normal file
@ -0,0 +1,2 @@
|
||||
NGINX_VERSION=1.21.0
|
||||
NGINX_DOWNLOAD_URL=http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz
|
@ -83,7 +83,7 @@ RUN pecl install smbclient && \
|
||||
##################################################################
|
||||
|
||||
|
||||
FROM epicmorg/nginx:latest
|
||||
FROM epicmorg/nginx:${NGINX_VERSION}
|
||||
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
5
linux/nginx/1.21.0/php/Makefile
Normal file
5
linux/nginx/1.21.0/php/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
docker-compose push
|
9
linux/nginx/1.21.0/php/docker-compose.yml
Normal file
9
linux/nginx/1.21.0/php/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/nginx:${NGINX_VERSION}-php"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
NGINX_VERSION: ${NGINX_VERSION}
|
||||
NGINX_DOWNLOAD_URL: ${NGINX_DOWNLOAD_URL}
|
2
linux/nginx/1.21.0/rtmp-hls/.env
Normal file
2
linux/nginx/1.21.0/rtmp-hls/.env
Normal file
@ -0,0 +1,2 @@
|
||||
NGINX_VERSION=1.21.0
|
||||
NGINX_DOWNLOAD_URL=http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz
|
@ -1,4 +1,4 @@
|
||||
FROM epicmorg/nginx
|
||||
FROM epicmorg/nginx:${NGINX_VERSION}
|
||||
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
5
linux/nginx/1.21.0/rtmp-hls/Makefile
Normal file
5
linux/nginx/1.21.0/rtmp-hls/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
docker-compose build --compress
|
||||
docker-compose push
|
9
linux/nginx/1.21.0/rtmp-hls/docker-compose.yml
Normal file
9
linux/nginx/1.21.0/rtmp-hls/docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/nginx:${NGINX_VERSION}-rtmp-hls"
|
||||
build:
|
||||
context: .
|
||||
args:
|
||||
NGINX_VERSION: ${NGINX_VERSION}
|
||||
NGINX_DOWNLOAD_URL: ${NGINX_DOWNLOAD_URL}
|
@ -1,8 +0,0 @@
|
||||
all: nginx
|
||||
|
||||
nginx:
|
||||
docker build --compress -t epicmorg/nginx:latest .
|
||||
docker push epicmorg/nginx:latest
|
||||
|
||||
docker tag epicmorg/nginx:latest epicmorg/balancer:latest
|
||||
docker push epicmorg/balancer:latest
|
@ -1,8 +0,0 @@
|
||||
all: nginx
|
||||
|
||||
nginx:
|
||||
docker build --compress -t epicmorg/nginx:php .
|
||||
docker push epicmorg/nginx:php
|
||||
|
||||
docker tag epicmorg/nginx:php epicmorg/balancer:php
|
||||
docker push epicmorg/balancer:php
|
@ -1,8 +0,0 @@
|
||||
all: nginx
|
||||
|
||||
nginx:
|
||||
docker build --compress -t epicmorg/nginx:rtmp-hls .
|
||||
docker push epicmorg/nginx:rtmp-hls
|
||||
|
||||
docker tag epicmorg/nginx:rtmp-hls epicmorg/balancer:rtmp-hls
|
||||
docker push epicmorg/balancer:rtmp-hls
|
Loading…
x
Reference in New Issue
Block a user