mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-02-24 01:38:15 +00:00
Merge pull request #2395 from nginx-proxy/dependabot/docker/nginx-1.25.4
build: bump nginx from 1.25.3 to 1.25.4
This commit is contained in:
commit
020b993654
@ -3,7 +3,7 @@ FROM nginxproxy/docker-gen:0.11.2 AS docker-gen
|
|||||||
FROM nginxproxy/forego:0.18.1 AS forego
|
FROM nginxproxy/forego:0.18.1 AS forego
|
||||||
|
|
||||||
# Build the final image
|
# Build the final image
|
||||||
FROM nginx:1.25.3-alpine
|
FROM nginx:1.25.4-alpine
|
||||||
|
|
||||||
ARG NGINX_PROXY_VERSION
|
ARG NGINX_PROXY_VERSION
|
||||||
# Add DOCKER_GEN_VERSION environment variable because
|
# Add DOCKER_GEN_VERSION environment variable because
|
||||||
|
@ -3,7 +3,7 @@ FROM nginxproxy/docker-gen:0.11.2-debian AS docker-gen
|
|||||||
FROM nginxproxy/forego:0.18.1-debian AS forego
|
FROM nginxproxy/forego:0.18.1-debian AS forego
|
||||||
|
|
||||||
# Build the final image
|
# Build the final image
|
||||||
FROM nginx:1.25.3
|
FROM nginx:1.25.4
|
||||||
|
|
||||||
ARG NGINX_PROXY_VERSION
|
ARG NGINX_PROXY_VERSION
|
||||||
# Add DOCKER_GEN_VERSION environment variable because
|
# Add DOCKER_GEN_VERSION environment variable because
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
[](https://github.com/nginx-proxy/nginx-proxy/actions/workflows/test.yml)
|
[](https://github.com/nginx-proxy/nginx-proxy/actions/workflows/test.yml)
|
||||||
[](https://github.com/nginx-proxy/nginx-proxy/releases)
|
[](https://github.com/nginx-proxy/nginx-proxy/releases)
|
||||||

|

|
||||||
[](https://hub.docker.com/r/nginxproxy/nginx-proxy "Click to view the image on Docker Hub")
|
[](https://hub.docker.com/r/nginxproxy/nginx-proxy "Click to view the image on Docker Hub")
|
||||||
[](https://hub.docker.com/r/nginxproxy/nginx-proxy 'DockerHub')
|
[](https://hub.docker.com/r/nginxproxy/nginx-proxy "DockerHub")
|
||||||
[](https://hub.docker.com/r/nginxproxy/nginx-proxy 'DockerHub')
|
[](https://hub.docker.com/r/nginxproxy/nginx-proxy "DockerHub")
|
||||||
|
|
||||||
|
|
||||||
nginx-proxy sets up a container running nginx and [docker-gen](https://github.com/nginx-proxy/docker-gen). docker-gen generates reverse proxy configs for nginx and reloads nginx when containers are started and stopped.
|
nginx-proxy sets up a container running nginx and [docker-gen](https://github.com/nginx-proxy/docker-gen). docker-gen generates reverse proxy configs for nginx and reloads nginx when containers are started and stopped.
|
||||||
|
|
||||||
@ -34,6 +33,7 @@ docker run --detach \
|
|||||||
Provided your DNS is setup to resolve `foo.bar.com` to the host running nginx-proxy, a request to `http://foo.bar.com` will then be routed to a container with the `VIRTUAL_HOST` env var set to `foo.bar.com` (in this case, the **your-proxied-app** container).
|
Provided your DNS is setup to resolve `foo.bar.com` to the host running nginx-proxy, a request to `http://foo.bar.com` will then be routed to a container with the `VIRTUAL_HOST` env var set to `foo.bar.com` (in this case, the **your-proxied-app** container).
|
||||||
|
|
||||||
The containers being proxied must :
|
The containers being proxied must :
|
||||||
|
|
||||||
- [expose](https://docs.docker.com/engine/reference/run/#expose-incoming-ports) the port to be proxied, either by using the `EXPOSE` directive in their `Dockerfile` or by using the `--expose` flag to `docker run` or `docker create`.
|
- [expose](https://docs.docker.com/engine/reference/run/#expose-incoming-ports) the port to be proxied, either by using the `EXPOSE` directive in their `Dockerfile` or by using the `--expose` flag to `docker run` or `docker create`.
|
||||||
- share at least one Docker network with the nginx-proxy container: by default, if you don't pass the `--net` flag when your nginx-proxy container is created, it will only be attached to the default bridge network. This means that it will not be able to connect to containers on networks other than bridge.
|
- share at least one Docker network with the nginx-proxy container: by default, if you don't pass the `--net` flag when your nginx-proxy container is created, it will only be attached to the default bridge network. This means that it will not be able to connect to containers on networks other than bridge.
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ fi
|
|||||||
# Create a nginx container (which conveniently provides the `openssl` command)
|
# Create a nginx container (which conveniently provides the `openssl` command)
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
CONTAINER=$(docker run -d -v $DIR:/work -w /work -e SAN="$ALTERNATE_DOMAINS" nginx:1.25.3)
|
CONTAINER=$(docker run -d -v $DIR:/work -w /work -e SAN="$ALTERNATE_DOMAINS" nginx:1.25.4)
|
||||||
# Configure openssl
|
# Configure openssl
|
||||||
docker exec $CONTAINER bash -c '
|
docker exec $CONTAINER bash -c '
|
||||||
mkdir -p /ca/{certs,crl,private,newcerts} 2>/dev/null
|
mkdir -p /ca/{certs,crl,private,newcerts} 2>/dev/null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user