mirror of
https://github.com/ArcticFoxes-net/Signal-TLS-Proxy
synced 2024-12-22 08:21:33 -05:00
Use upstream NGINX image
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
8999930ff0
commit
f41eb8b38c
@ -2,21 +2,19 @@ version: '3'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
nginx-terminate:
|
nginx-terminate:
|
||||||
build: ./nginx-terminate/
|
image: nginx:alpine
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/nginx-terminate:/etc/nginx/conf.d
|
- ./data/nginx-terminate/nginx.conf:/etc/nginx/nginx.conf:Z
|
||||||
- ./data/certbot/conf:/etc/letsencrypt
|
- ./data/certbot/conf:/etc/letsencrypt:Z
|
||||||
- ./data/certbot/www:/var/www/certbot
|
- ./data/certbot/www:/var/www/certbot:Z
|
||||||
ports:
|
ports:
|
||||||
- "443:443"
|
- "443:443"
|
||||||
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; /opt/nginx/sbin/nginx -s reload; done & /opt/nginx/sbin/nginx -c /etc/nginx/conf.d/nginx.conf -g \"daemon off;\"'"
|
|
||||||
nginx-relay:
|
nginx-relay:
|
||||||
build: ./nginx-relay/
|
image: nginx:alpine
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/nginx-relay:/etc/nginx/conf.d
|
- ./data/nginx-relay/nginx.conf:/etc/nginx/nginx.conf:Z
|
||||||
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; /opt/nginx/sbin/nginx -s reload; done & /opt/nginx/sbin/nginx -c /etc/nginx/conf.d/nginx.conf -g \"daemon off;\"'"
|
|
||||||
certbot:
|
certbot:
|
||||||
image: certbot/certbot
|
image: certbot/certbot
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
@ -1,22 +0,0 @@
|
|||||||
FROM ubuntu:20.04
|
|
||||||
|
|
||||||
RUN apt-get update && apt-get -y upgrade && \
|
|
||||||
apt-get install -y wget libpcre3-dev build-essential libssl-dev zlib1g-dev && \
|
|
||||||
rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
WORKDIR /opt
|
|
||||||
|
|
||||||
RUN wget https://nginx.org/download/nginx-1.18.0.tar.gz && \
|
|
||||||
tar -zxvf nginx-1.*.tar.gz && \
|
|
||||||
cd nginx-1.* && \
|
|
||||||
./configure --prefix=/opt/nginx --user=nginx --group=nginx --with-http_ssl_module --with-ipv6 --with-threads --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module && \
|
|
||||||
make && make install && \
|
|
||||||
cd .. && rm -rf nginx-1.*
|
|
||||||
|
|
||||||
RUN adduser --system --no-create-home --disabled-login --disabled-password --group nginx
|
|
||||||
|
|
||||||
WORKDIR /
|
|
||||||
|
|
||||||
EXPOSE 443
|
|
||||||
|
|
||||||
CMD ["/opt/nginx/sbin/nginx", "-c", "/etc/nginx/conf.d/nginx.conf", "-g", "daemon off;"]
|
|
@ -1,22 +0,0 @@
|
|||||||
FROM ubuntu:20.04
|
|
||||||
|
|
||||||
RUN apt-get update && apt-get -y upgrade && \
|
|
||||||
apt-get install -y wget libpcre3-dev build-essential libssl-dev zlib1g-dev && \
|
|
||||||
rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
WORKDIR /opt
|
|
||||||
|
|
||||||
RUN wget https://nginx.org/download/nginx-1.18.0.tar.gz && \
|
|
||||||
tar -zxvf nginx-1.*.tar.gz && \
|
|
||||||
cd nginx-1.* && \
|
|
||||||
./configure --prefix=/opt/nginx --user=nginx --group=nginx --with-http_ssl_module --with-ipv6 --with-threads --with-stream --with-stream_ssl_module --with-stream_ssl_preread_module && \
|
|
||||||
make && make install && \
|
|
||||||
cd .. && rm -rf nginx-1.*
|
|
||||||
|
|
||||||
RUN adduser --system --no-create-home --disabled-login --disabled-password --group nginx
|
|
||||||
|
|
||||||
WORKDIR /
|
|
||||||
|
|
||||||
EXPOSE 443
|
|
||||||
|
|
||||||
CMD ["/opt/nginx/sbin/nginx", "-c", "/etc/nginx/conf.d/nginx.conf", "-g", "daemon off;"]
|
|
Loading…
Reference in New Issue
Block a user