nginx testing

This commit is contained in:
Mr Bot 2019-09-23 14:55:02 +03:00
parent 5a0078a3cd
commit c7969435a7
9 changed files with 97 additions and 1 deletions

View File

@ -0,0 +1 @@
repository: epicmorg/balancer

View File

@ -0,0 +1,3 @@
.git
scripts
.idea

View File

@ -0,0 +1,17 @@
FROM epicmorg/devel
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
ARG DEBIAN_FRONTEND=noninteractive
ADD pre/ngninx.pre.tar.gz /
#FROM epicmorg/prod
#LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
#ARG DEBIAN_FRONTEND=noninteractive
#final config
#VOLUME ["/var/cache/nginx"]
#EXPOSE 80 443
#CMD ["nginx", "-g", "daemon off;"]

View File

@ -0,0 +1,4 @@
all: nginx
nginx:
docker build --compress -t epicmorg/balancer:testing .

View File

@ -0,0 +1,30 @@
# Compose example
```yml
version: '3.7'
services:
balancer:
image: epicmorg/balancer
restart: unless-stopped
ports:
- "0.0.0.0:80:80"
- "0.0.0.0:443:443"
volumes:
- /etc/localtime:/etc/localtime
- /etc/timezone:/etc/timezone
- /etc/letsencrypt:/etc/letsencrypt
- nginx:/etc/nginx
- nginx-usr:/usr/share/nginx/html
- /var/lib/nginx
# extra_hosts:
# - "example.com:192.168.0.11"
depends_on:
- websites
tmpfs:
- /tmp
volumes:
nginx:
external: true
nginx-usr:
external: true
```

View File

@ -0,0 +1 @@
Custom build of luajit2 for Nginx module, by EpicMorg.

View File

@ -0,0 +1 @@
Custom build of Nginx with some modules by EpicMorg.

Binary file not shown.

View File

@ -62,10 +62,49 @@ RUN apt-get update && \
checkinstall \
dh-make
##################################################################
# IP2Location support
##################################################################
RUN cd /tmp && \
git clone https://github.com/chrislim2888/IP2Location-C-Library.git ip2 && \
cd /tmp/ip2 && \
./build.sh && \
checkinstall --pkgversion=$(date +%Y%m%d%H%M) && \
rm -rfv /tmp/ip2
##################################################################
# nginx deps
##################################################################
RUN apt-get update && \
apt install -y --allow-unauthenticated \
zlibc \
zlib1g \
zlib1g-dev \
libssl-dev \
libxml2-dev \
libxslt-dev \
libgd-dev \
libpcre3-dev \
libgeoip-dev \
libkrb5-dev \
libperl-dev \
krb5-user \
samba \
luajit \
liblua5.1-0-dev \
libmaxminddb-dev \
libpam0g-dev \
libldap2-dev \
libavformat-dev \
libavfilter-dev \
libswscale-dev \
libavcodec-dev \
libz-dev \
libhiredis-dev \
libzip-dev \
libcrypto++-dev \
libbz2-dev \
tcl
##################################################################
# other customisations